aboutsummaryrefslogtreecommitdiffstats
path: root/identity/identity.go
diff options
context:
space:
mode:
authorMichael Muré <michael.mure@consensys.net>2019-03-27 21:54:58 +0100
committerMichael Muré <michael.mure@consensys.net>2019-03-27 21:54:58 +0100
commitbdf8523dc0d8cbd9f29e62fa8605b5bd5292828e (patch)
treec2e1d3f0ecce614389c613e91fa7534225e8215e /identity/identity.go
parentffc6cbdc45d379df231d8bc084e86f554015d5d9 (diff)
downloadgit-bug-bdf8523dc0d8cbd9f29e62fa8605b5bd5292828e.tar.gz
commands: only return the error (not the function help) when no identity is set
... to avoid misleading a user into thinking the usage was incorrect
Diffstat (limited to 'identity/identity.go')
-rw-r--r--identity/identity.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/identity/identity.go b/identity/identity.go
index 3dddfaec..be3c16ec 100644
--- a/identity/identity.go
+++ b/identity/identity.go
@@ -25,7 +25,7 @@ const idLength = 40
const humanIdLength = 7
var ErrNonFastForwardMerge = errors.New("non fast-forward identity merge")
-var ErrNoIdentitySet = errors.New("user identity first needs to be created using \"git bug user create\" or \"git bug user adopt\"")
+var ErrNoIdentitySet = errors.New("to interact with bugs, an identity first needs to be created using \"git bug user create\" or \"git bug user adopt\"")
var ErrMultipleIdentitiesSet = errors.New("multiple user identities set")
var _ Interface = &Identity{}