Skip to content

Commit

Permalink
add error log
Browse files Browse the repository at this point in the history
  • Loading branch information
NhanPT committed Jan 8, 2023
1 parent ffd988b commit 6340670
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package utils

import (
"errors"
"fmt"
"log"
"os"
"path/filepath"
Expand Down Expand Up @@ -36,6 +37,7 @@ func (runner *JobRunner) Run() error {
uploadPath = createTempPath(uploadFile)
err = ZipFolder(runner.Job.Path, uploadFile)
if err != nil {
fmt.Println(err.Error())
return err
}
}
Expand All @@ -46,6 +48,7 @@ func (runner *JobRunner) Run() error {
remotePath := createRemotePath(uploadFile)
err = runner.Service.Upload(uploadPath, remotePath)
if err != nil {
fmt.Println(err.Error())
return err
}

Expand Down

0 comments on commit 6340670

Please sign in to comment.