Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

show detailed error when you cant find settings.json

  • Loading branch information...
commit f753eb81bdad26ac4389a99582a96a656c2acf54 1 parent a7125c3
@mhansen authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  server.js
View
2  server.js
@@ -10,7 +10,7 @@ sys = require('sys');
fs.readFile(process.argv[2] || './settings.json', function(err, data) {
var settings = {};
if (err) {
- sys.puts('No settings.json found. Using default settings');
+ sys.puts('No settings.json found ('+err+'). Using default settings');
} else {
try {
settings = JSON.parse(data.toString('utf8',0,data.length));
Please sign in to comment.
Something went wrong with that request. Please try again.