Explorar o código

Merge pull request #10360 from dmcgowan/keyfile-error-message

Add file path to errors loading the key file
Michael Crosby %!s(int64=10) %!d(string=hai) anos
pai
achega
e15300b251
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      api/common.go

+ 1 - 1
api/common.go

@@ -69,7 +69,7 @@ func LoadOrCreateTrustKey(trustKeyPath string) (libtrust.PrivateKey, error) {
 			return nil, fmt.Errorf("Error saving key file: %s", err)
 		}
 	} else if err != nil {
-		return nil, fmt.Errorf("Error loading key file: %s", err)
+		return nil, fmt.Errorf("Error loading key file %s: %s", trustKeyPath, err)
 	}
 	return trustKey, nil
 }