diff --git a/command/token/helper_external.go b/command/token/helper_external.go index 9f65f2f3f4..40de9bfde1 100644 --- a/command/token/helper_external.go +++ b/command/token/helper_external.go @@ -30,10 +30,10 @@ func ExternalTokenHelperPath(path string) (string, error) { } if _, err := os.Stat(path); err != nil { - return path, nil + return "", fmt.Errorf("unknown error getting the external helper path") } - return "", fmt.Errorf("unknown error getting the external helper path") + return path, nil } // ExternalTokenHelper is the struct that has all the logic for storing and retrieving