From a01c7eede6b1bfce204afe41ee987b854f40f9d3 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Mon, 28 Sep 2015 12:27:56 -0700 Subject: [PATCH] 'triton profile -a' fix when invalid keyId --- lib/do_profile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/do_profile.js b/lib/do_profile.js index 789f6df..437d4ab 100644 --- a/lib/do_profile.js +++ b/lib/do_profile.js @@ -394,9 +394,9 @@ function _addProfile(opts, cb) { tilde(value, function (keyPath) { fs.stat(keyPath, function (statErr, stats) { if (statErr || !stats.isFile()) { - return valCb(new Error( + return valCb(new Error(format( '"%s" is neither a valid fingerprint, ' + - 'nor an existing file', value)); + 'nor an existing file', value))); } fs.readFile(keyPath, function (readErr, keyData) { if (readErr) {