From ee7850cff354cdce5269e6ef97c52a6a98479e5d Mon Sep 17 00:00:00 2001 From: Tom Maher Date: Tue, 21 Jun 2016 19:32:19 -0700 Subject: [PATCH] Correctly check for existence of external token_helper binaries --- command/token/helper_external.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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