Skip to content

Commit

Permalink
report actual copy error when syncing files to containers (#3715)
Browse files Browse the repository at this point in the history
  • Loading branch information
tejal29 authored Feb 23, 2020
1 parent 4c9d801 commit eb6aa95
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/skaffold/sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,12 @@ func Perform(ctx context.Context, image string, files syncMap, cmdFn func(contex
}
}

if err := errs.Wait(); err != nil {
return err
}

if numSynced == 0 {
return errors.New("didn't sync any files")
}

return errs.Wait()
return nil
}

0 comments on commit eb6aa95

Please sign in to comment.