Permalink
Browse files

show detailed error when you cant find settings.json

  • Loading branch information...
1 parent a7125c3 commit f753eb81bdad26ac4389a99582a96a656c2acf54 @mhansen committed Jul 28, 2010
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));

0 comments on commit f753eb8

Please sign in to comment.