diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-04 19:40:44 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-04 19:40:44 -0700 |
| commit | 7f9a08f3d630be2b687b3c63a7d39330a7ea87c6 (patch) | |
| tree | 65835afb2bee72217779aaa04b991ca20215c4be | |
| parent | 8d95dc74a767348e758f3299a2be8ba28d430f30 (diff) | |
Updated.
| -rw-r--r-- | lib/timeout.nom | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/timeout.nom b/lib/timeout.nom index 3ff821f..dc5212d 100644 --- a/lib/timeout.nom +++ b/lib/timeout.nom @@ -2,5 +2,7 @@ require "lib/core.nom" rule [cap at %num instructions] =: lua code ".." |print("capped at", \(%num)) - |local f = function() error("timeout") end + |local f = function() + | nomsu:error("Execution quota exceeded. Your code took too long.") + |end |debug.sethook(f, "", \(%num)) |
