0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Changed exit codes to be > 0

ref: https://tldp.org/LDP/abs/html/exitcodes.html

- exit codes being -1 is a mistake that got perpetuated, should be 1 or greater
- for now, just use 1
This commit is contained in:
Hannah Wolfe 2021-02-05 20:13:50 +00:00
parent 1dc6fdcd66
commit 2b3c00ac32
3 changed files with 3 additions and 3 deletions

View file

@ -166,7 +166,7 @@ class GhostServer {
process.exit(0);
} catch (error) {
logging.error(error);
process.exit(-1);
process.exit(1);
}
}

View file

@ -164,7 +164,7 @@ const minimalRequiredSetupToStartGhost = async (dbState) => {
} finally {
logging.error(err);
setTimeout(() => {
process.exit(-1);
process.exit(1);
}, 100);
}
}

View file

@ -37,6 +37,6 @@ ghost().then(function (ghostServer) {
}).catch(function (err) {
logging.error(err);
setTimeout(() => {
process.exit(-1);
process.exit(1);
}, 100);
});