aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/procedure.jvm.lux
diff options
context:
space:
mode:
authorEduardo Julian2017-11-13 23:26:06 -0400
committerEduardo Julian2017-11-13 23:26:06 -0400
commit70005a6dee1eba3e3f5694aa4903e95988dcaa3d (patch)
tree19141f900847092c3aa5032a62b6b97eb1ea9a33 /new-luxc/source/luxc/lang/translation/procedure.jvm.lux
parentb08f7d83a591be770af64b4c9ccd59f3306689e8 (diff)
- Refactoring.
- Now giving type checking/inference a higher priority. - Better error messages.
Diffstat (limited to '')
-rw-r--r--new-luxc/source/luxc/lang/translation/procedure.jvm.lux2
1 files changed, 1 insertions, 1 deletions
diff --git a/new-luxc/source/luxc/lang/translation/procedure.jvm.lux b/new-luxc/source/luxc/lang/translation/procedure.jvm.lux
index 82b7c5d44..733f630d5 100644
--- a/new-luxc/source/luxc/lang/translation/procedure.jvm.lux
+++ b/new-luxc/source/luxc/lang/translation/procedure.jvm.lux
@@ -21,7 +21,7 @@
(def: #export (translate-procedure translate name args)
(-> (-> ls;Synthesis (Meta $;Inst)) Text (List ls;Synthesis)
(Meta $;Inst))
- (<| (maybe;default (&;throw Unknown-Procedure name))
+ (<| (maybe;default (&;throw Unknown-Procedure (%t name)))
(do maybe;Monad<Maybe>
[proc (dict;get name procedures)]
(wrap (proc translate args)))))