mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-03 03:58:01 +00:00
throw an error when starting vault if one occurs (#6235)
* throw an error when starting vault if one occurs * use node 10 * do not use shorthand
This commit is contained in:
@@ -42,7 +42,10 @@ readline
|
||||
if (root && unseal) {
|
||||
fs.writeFile(
|
||||
path.join(process.cwd(), 'tests/helpers/vault-keys.js'),
|
||||
`export default ${JSON.stringify({ unseal, root }, null, 2)}`
|
||||
`export default ${JSON.stringify({ unseal, root }, null, 2)}`,
|
||||
err => {
|
||||
if (err) throw err;
|
||||
}
|
||||
);
|
||||
|
||||
console.log('VAULT SERVER READY');
|
||||
@@ -71,7 +74,7 @@ process.on('exit', function() {
|
||||
vault.kill('SIGINT');
|
||||
});
|
||||
|
||||
fs.writeFile(pidFile, process.pid, (err) => {
|
||||
fs.writeFile(pidFile, process.pid, err => {
|
||||
if (err) throw err;
|
||||
console.log('The file has been saved!');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user