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) ->
server.on "error", (e) ->
if e.code is "EADDRINUSE"
console.log "Address in use %s:%d. Exit.", config.host, config.port
process.exit 1
process.exit 3
else
console.error e
return
......@@ -135,7 +135,7 @@ try
user_config = parser.getUserConfig()
if user_config
console.log "Reading user configutation ..."
config = extend(true, {}, config, require(user_config))
config = extend(true, config, require(user_config))
else
console.log "No user config specified. Using global settings."
......@@ -158,4 +158,4 @@ catch err
console.log "File %s not found.", user_config
else
console.error "Error reading user configutation", err
process.exit 1
process.exit 2
......@@ -9,7 +9,7 @@ Parser = ->
-h print this help
-c set user configuration file
""", process.argv[1].split("/").pop()
process.exit 0
process.exit 1
return
@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