Skip to content

Instantly share code, notes, and snippets.

@els-pnw
Created November 11, 2011 19:04
Show Gist options
  • Save els-pnw/1358883 to your computer and use it in GitHub Desktop.
Save els-pnw/1358883 to your computer and use it in GitHub Desktop.
check-for-error
(defn check-for-error
"Gets any notification and checks if error, if not error, does
nothing. If error throws exception."
(let [notif (notification)
msg (:msg notif)]
(cond (
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment