Log if token not found in keyring
This commit is contained in:
parent
2a84f99cb5
commit
91459d03f8
1 changed files with 5 additions and 1 deletions
6
main.go
6
main.go
|
|
@ -10,7 +10,11 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
t, _ := keyring.Get(constants.Name, "token")
|
||||
t, err := keyring.Get(constants.Name, "token")
|
||||
if err != nil {
|
||||
log.Println("token not found in keyring:", err)
|
||||
}
|
||||
|
||||
token := flag.String("token", t, "The authentication token.")
|
||||
flag.Parse()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue