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:
parent
1dc6fdcd66
commit
2b3c00ac32
3 changed files with 3 additions and 3 deletions
|
@ -166,7 +166,7 @@ class GhostServer {
|
|||
process.exit(0);
|
||||
} catch (error) {
|
||||
logging.error(error);
|
||||
process.exit(-1);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@ const minimalRequiredSetupToStartGhost = async (dbState) => {
|
|||
} finally {
|
||||
logging.error(err);
|
||||
setTimeout(() => {
|
||||
process.exit(-1);
|
||||
process.exit(1);
|
||||
}, 100);
|
||||
}
|
||||
}
|
||||
|
|
2
index.js
2
index.js
|
@ -37,6 +37,6 @@ ghost().then(function (ghostServer) {
|
|||
}).catch(function (err) {
|
||||
logging.error(err);
|
||||
setTimeout(() => {
|
||||
process.exit(-1);
|
||||
process.exit(1);
|
||||
}, 100);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue