From 684bfcfd34bc1ade16929418452b4d72e6340c8e Mon Sep 17 00:00:00 2001 From: qwazwsx/howl Date: Thu, 26 Jul 2018 12:47:30 -0500 Subject: [PATCH] added more user friendly error message warns the user when they don't have write access to crontabs --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index c1b2202..8dc7e67 100755 --- a/app.js +++ b/app.js @@ -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); } });