瀏覽代碼

Add file path to errors loading the key file

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
Derek McGowan 10 年之前
父節點
當前提交
a90e91b500
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)
 			return nil, fmt.Errorf("Error saving key file: %s", err)
 		}
 		}
 	} else if err != nil {
 	} 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
 	return trustKey, nil
 }
 }