提交 6aa38937 编写于 作者: S Siddharth Kothari

adds --help usage message on login command when user is not logged in

上级 a7f56233
......@@ -31,7 +31,7 @@ func LoadUserSessionAsString() (string, error) {
if len(token) > 0 {
return token, nil
}
return "", errors.New("user not logged in, see --help on how to login.")
return "", errors.New("user not logged in.")
}
// LoadUserSessionAsCookie loads and returns arrays of cookies
......
......@@ -39,6 +39,6 @@ func isLoggedIn() bool {
if login.IsUserAuthenticated() {
return true
}
fmt.Println("user not logged in")
fmt.Println("user not logged in, use --help to see usage on how to login.")
return false
}
......@@ -6,7 +6,7 @@ import (
"runtime"
)
var version = "0.4.0"
var version = "0.4.1"
var variant = imports.BuildName
// runVersion runs the logout command
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册