'triton profile -a' fix when invalid keyId
This commit is contained in:
parent
daecb2979b
commit
a01c7eede6
@ -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) {
|
||||
|
Reference in New Issue
Block a user