Exit with error code on error

This commit is contained in:
Juan Ferrer 2022-06-13 09:13:23 +02:00
parent 8b03a86155
commit 7ed98621ce
3 changed files with 4 additions and 2 deletions

View File

@ -160,6 +160,8 @@ class MyVC {
console.log(`You can get more details about the error by passing the 'debug' option.`.yellow); console.log(`You can get more details about the error by passing the 'debug' option.`.yellow);
} else } else
console.log(err.stack.magenta); console.log(err.stack.magenta);
process.exit(1);
} }
function parameter(parameter, value) { function parameter(parameter, value) {

View File

@ -1,6 +1,6 @@
{ {
"name": "myvc", "name": "myvc",
"version": "1.4.11", "version": "1.4.12",
"author": "Verdnatura Levante SL", "author": "Verdnatura Levante SL",
"description": "MySQL Version Control", "description": "MySQL Version Control",
"license": "GPL-3.0", "license": "GPL-3.0",

View File

@ -8,6 +8,6 @@
"type": "git" "type": "git"
}, },
"dependencies": { "dependencies": {
"myvc": "^1.4.11" "myvc": "^1.4.12"
} }
} }