Skip to content

Instantly share code, notes, and snippets.

@caasi
Created September 20, 2019 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caasi/e405c2d075956150473ed7067d63bbd8 to your computer and use it in GitHub Desktop.
Save caasi/e405c2d075956150473ed7067d63bbd8 to your computer and use it in GitHub Desktop.
if err in livescript backcalls
success = (f) -> f undefined, 1
failure = (f) -> f new Error('oops')
err, value <- success
console.error err if err
console.log value
err, value <- failure
console.error err if err
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment