Log if token not found in keyring

This commit is contained in:
ayn2op 2024-02-15 15:20:31 +05:30
parent 2a84f99cb5
commit 91459d03f8

View file

@ -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()