Commit cf413f52 authored by Leo Iannacone's avatar Leo Iannacone

give sense to exist statuses

parent 6793a2f1
...@@ -93,7 +93,7 @@ server.listen config.port, config.host, null, (err) -> ...@@ -93,7 +93,7 @@ server.listen config.port, config.host, null, (err) ->
server.on "error", (e) -> server.on "error", (e) ->
if e.code is "EADDRINUSE" if e.code is "EADDRINUSE"
console.log "Address in use %s:%d. Exit.", config.host, config.port console.log "Address in use %s:%d. Exit.", config.host, config.port
process.exit 1 process.exit 3
else else
console.error e console.error e
return return
...@@ -135,7 +135,7 @@ try ...@@ -135,7 +135,7 @@ try
user_config = parser.getUserConfig() user_config = parser.getUserConfig()
if user_config if user_config
console.log "Reading user configutation ..." console.log "Reading user configutation ..."
config = extend(true, {}, config, require(user_config)) config = extend(true, config, require(user_config))
else else
console.log "No user config specified. Using global settings." console.log "No user config specified. Using global settings."
...@@ -158,4 +158,4 @@ catch err ...@@ -158,4 +158,4 @@ catch err
console.log "File %s not found.", user_config console.log "File %s not found.", user_config
else else
console.error "Error reading user configutation", err console.error "Error reading user configutation", err
process.exit 1 process.exit 2
...@@ -9,7 +9,7 @@ Parser = -> ...@@ -9,7 +9,7 @@ Parser = ->
-h print this help -h print this help
-c set user configuration file -c set user configuration file
""", process.argv[1].split("/").pop() """, process.argv[1].split("/").pop()
process.exit 0 process.exit 1
return return
@getUserConfig = -> @getUserConfig = ->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment