'triton profile -a' fix when invalid keyId

This commit is contained in:
Trent Mick 2015-09-28 12:27:56 -07:00
parent daecb2979b
commit a01c7eede6

View File

@ -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) {