From a90e91b500bb1a39a7726025973b5748148768c1 Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Mon, 26 Jan 2015 12:58:45 -0800 Subject: [PATCH] Add file path to errors loading the key file Signed-off-by: Derek McGowan (github: dmcgowan) --- api/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/common.go b/api/common.go index fb3eefaca0..bd0639e0b5 100644 --- a/api/common.go +++ b/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 }