Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Commit

Permalink
Fixes #3 - Poor error message if mapping file is not valid JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegIlyenko committed May 13, 2015
1 parent ce8eea7 commit 5573873
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/coffee/run.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ Q.spread [util.loadFile(argv.mapping)], (mappingText) ->
console.error "\n\nProcessed #{count} lines in #{endTime - startTime} ms."
process.exit 0
.fail (error) ->
console.error error.stack
if error.name and error.name == 'YAMLException'
console.error error.toString()
else
console.error error.stack

process.exit 1
.done()

0 comments on commit 5573873

Please sign in to comment.