Minor changes to READMEs and core

This commit is contained in:
Alexander Cerutti
2018-12-11 21:25:30 +01:00
parent 96e2b628fe
commit 92fc5f8264
3 changed files with 6 additions and 4 deletions

View File

@@ -721,10 +721,12 @@ class Pass {
});
}).catch(err => {
if (!err.path) {
// Catching error from '.then()';
console.log("Got an error");
throw err;
} else {
throw new Error(formatError("INVALID_CERT_PATH", path.parse(err.path).base));
}
throw new Error(formatError("INVALID_CERT_PATH", path.parse(err.path).base));
});
}