diff options
Diffstat (limited to 'src/cljcc/exception.clj')
| -rw-r--r-- | src/cljcc/exception.clj | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cljcc/exception.clj b/src/cljcc/exception.clj index b8b8256..40ea930 100644 --- a/src/cljcc/exception.clj +++ b/src/cljcc/exception.clj @@ -16,3 +16,6 @@ (defn compiler-error [msg data] (throw (ex-info msg (merge {:error/type :compiler} data)))) + +(defn emit-error [msg data] + (throw (ex-info msg (merge {:error/type :emit} data)))) |
