added more user friendly error message

warns the user when they don't have write access to crontabs
pull/80/head
qwazwsx/howl 2018-07-26 12:47:30 -05:00 committed by GitHub
parent 0222190b03
commit 684bfcfd34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
app.js
View File

@ -207,7 +207,7 @@ app.listen(app.get('port'), app.get('host'), function() {
console.log("Node version:", process.versions.node);
fs.access(__dirname + "/crontabs/", fs.W_OK, function(err) {
if(err){
console.error("Write access to", __dirname + "/crontabs/", "DENIED.");
console.error("Write access to", __dirname + "/crontabs/", "DENIED. \nTry running with root permissions.");
process.exit(1);
}
});