Skip to content

Commit

Permalink
fix: remove fetch data from nil
Browse files Browse the repository at this point in the history
  • Loading branch information
v-zijzhang committed Feb 16, 2022
1 parent 7916789 commit bd14c1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ func loadCliOpts() {

func onUploaded(r result.Result[*model.Task]) {
if !r.Ok() && xapp.AppOpt.OutputType == xapp.O_Stdout {
fmt.Println("Failed: " + r.Err.Error())
xlog.GVerbose.Info("Failed to upload %s: %s", r.Value.LocalPath, r.Err.Error())
fmt.Println("Failed: " + r.Err.Error())
return
}
if xapp.AppOpt.Clean && !r.Value.Ignored {
Expand Down

0 comments on commit bd14c1d

Please sign in to comment.