Created
November 11, 2011 19:04
-
-
Save els-pnw/1358883 to your computer and use it in GitHub Desktop.
check-for-error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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