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

Commit 9683e43

Browse files
committed
ensure: format update args validation error output
1 parent b6aa8d3 commit 9683e43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/dep/ensure.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -826,8 +826,9 @@ func validateUpdateArgs(ctx *dep.Ctx, args []string, p *dep.Project, sm gps.Sour
826826

827827
// Log all the errors
828828
if len(errArgsValidationCh) > 0 {
829+
ctx.Err.Printf("Invalid arguments passed to ensure -update:\n\n")
829830
for err := range errArgsValidationCh {
830-
ctx.Err.Println(err.Error())
831+
ctx.Err.Println(" ✗", err.Error())
831832
}
832833
ctx.Err.Println()
833834
return errUpdateArgsValidation

0 commit comments

Comments
 (0)