aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/root.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/root.go b/commands/root.go
index adbf51d9..3438d15c 100644
--- a/commands/root.go
+++ b/commands/root.go
@@ -88,7 +88,9 @@ func loadRepoEnsureUser(cmd *cobra.Command, args []string) error {
}
if !set {
- return identity.ErrNoIdentitySet
+ // Print the error directly to not confuse a user
+ _, _ = fmt.Fprintln(os.Stderr, identity.ErrNoIdentitySet.Error())
+ os.Exit(-1)
}
return nil