mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2025-04-29 03:10:43 -04:00
log error and exit
This commit is contained in:
parent
9aabe10cb3
commit
b8f0959bb4
1 changed files with 5 additions and 4 deletions
|
@ -38,9 +38,10 @@ const run = async () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
run()
|
run()
|
||||||
.then(() => {
|
.then((data) => {
|
||||||
console.log('DONE');
|
console.log('DONE', data);
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch((error) => {
|
||||||
console.error('ERROR');
|
console.error('ERROR', error.message);
|
||||||
|
process.exit(1);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue