aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/control/exception.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/control/exception.lux8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/library/lux/control/exception.lux b/stdlib/source/library/lux/control/exception.lux
index 8d39a9daf..474ca07d3 100644
--- a/stdlib/source/library/lux/control/exception.lux
+++ b/stdlib/source/library/lux/control/exception.lux
@@ -37,9 +37,6 @@
(-> (Exception e) (-> Text a) (Try a)
(Try a)))
(.when try
- {//.#Success output}
- {//.#Success output}
-
{//.#Failure error}
(let [reference (the #label exception)]
(if (text.starts_with? reference error)
@@ -47,7 +44,10 @@
(text.clip_since (text.size reference))
maybe.trusted
then)}
- {//.#Failure error}))))
+ {//.#Failure error}))
+
+ success
+ success))
(.def .public (otherwise else try)
(All (_ a)