Remove unneeded logErrorOrContinue

This commit is contained in:
Juan Cruz Viotti 2014-11-17 15:13:31 -04:00
parent fa47ad1201
commit 5eeb4e04ee

View File

@ -1,14 +0,0 @@
exports.logErrorOrContinue = (func, context) ->
return ->
try
func.apply(context, arguments)
catch error
# TODO: There should be a log module that takes
# care of logging, and this should delegate to it
console.error("Error: #{error.message}")
# TODO: Allow errors to save an error code
# and use that here if it exists
process.exit(1)