Start using "error" instead of "warn" for bad things

This commit is contained in:
mike-thompson-day8 2015-05-02 10:48:31 +10:00
parent 36b88a7378
commit 7ebfc2a9ba
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
(:require
[reagent.ratom :refer [make-reaction]]
[re-frame.db :refer [app-db]]
[re-frame.utils :refer [first-in-vector warn group groupEnd]]))
[re-frame.utils :refer [first-in-vector warn error]]))
;; maps from handler-id to handler-fn
@ -29,6 +29,6 @@
(let [key-v (first-in-vector v)
handler-fn (get @key->fn key-v)]
(if (nil? handler-fn)
(warn "re-frame: no subscription handler registered for: \"" key-v "\". Returning a nil subscription.")
(error "re-frame: no subscription handler registered for: \"" key-v "\". Returning a nil subscription.")
(handler-fn app-db v))))