From 3fd5687370c3ef28c1878a79f0b4173e7212795f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 10 Jul 2018 17:10:37 -0700 Subject: Fixed up line numbers for generated code. --- code_obj.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code_obj.lua') diff --git a/code_obj.lua b/code_obj.lua index 7fa91fc..cc2fb69 100644 --- a/code_obj.lua +++ b/code_obj.lua @@ -85,7 +85,7 @@ do local _continue_0 = false repeat local b = select(i, ...) - assert(b) + assert(b, "bit is nil") if b == '' then _continue_0 = true break @@ -176,7 +176,7 @@ do if type(self.source) == 'string' then self.source = Source:from_string(self.source) end - assert(self.source and Source:is_instance(self.source)) + assert(self.source and Source:is_instance(self.source), "Source has the wrong type") return self:append(...) end, __base = _base_0, -- cgit v1.2.3