Skip to content

Commit 453d0e1

Browse files
author
Brad Gorman
committed
Clarify "not logged in" error
When attempting to deploy with the peer CLI, if the user has not logged in they get the error "User x not logged in. Use the 'login' command to obtain a security token." It took me a couple of minutes to figure out what the 'login' command actually is. I feel the error should specify it as 'peer network login'. I think this error is specific to the `peer` CLI code, so it should not affect REST or the Node SDK. Change-Id: I3d6d4e748d9dbf543c50c2754ef21cacfa14a069 Signed-off-by: Bradley Gorman <[email protected]>
1 parent 0f959c0 commit 453d0e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

peer/chaincode/common.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func getChaincodeSpecification(cmd *cobra.Command) (*pb.ChaincodeSpec, error) {
8888
} else {
8989
// Check if the token is not there and fail
9090
if os.IsNotExist(err) {
91-
return spec, fmt.Errorf("User '%s' not logged in. Use the 'login' command to obtain a security token.", chaincodeUsr)
91+
return spec, fmt.Errorf("User '%s' not logged in. Use the 'peer network login' command to obtain a security token.", chaincodeUsr)
9292
}
9393
// Unexpected error
9494
panic(fmt.Errorf("Fatal error when checking for client login token: %s\n", err))

0 commit comments

Comments
 (0)