aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu.moon')
-rwxr-xr-xnomsu.moon6
1 files changed, 5 insertions, 1 deletions
diff --git a/nomsu.moon b/nomsu.moon
index 9dc256e..3aa2c60 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -157,4 +157,8 @@ run = ->
elseif not ok
print_err_msg ret
-run_safely(run)
+has_ldt, ldt = pcall(require,'ldt')
+if has_ldt
+ ldt.guard(run)
+else
+ run_safely(run)