mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-18 21:27:51 +00:00
Remove unneeded logErrorOrContinue
This commit is contained in:
parent
fa47ad1201
commit
5eeb4e04ee
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user