From 7f9a08f3d630be2b687b3c63a7d39330a7ea87c6 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 4 Oct 2017 19:40:44 -0700 Subject: [PATCH] Updated. --- lib/timeout.nom | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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))