Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
ensure: format update args validation error output
Browse files Browse the repository at this point in the history
  • Loading branch information
darkowlzz committed Sep 20, 2017
1 parent b6aa8d3 commit 9683e43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/dep/ensure.go
Original file line number Diff line number Diff line change
Expand Up @@ -826,8 +826,9 @@ func validateUpdateArgs(ctx *dep.Ctx, args []string, p *dep.Project, sm gps.Sour

// Log all the errors
if len(errArgsValidationCh) > 0 {
ctx.Err.Printf("Invalid arguments passed to ensure -update:\n\n")
for err := range errArgsValidationCh {
ctx.Err.Println(err.Error())
ctx.Err.Println(" ✗", err.Error())
}
ctx.Err.Println()
return errUpdateArgsValidation
Expand Down

0 comments on commit 9683e43

Please sign in to comment.