diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-10 17:10:37 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-10 17:10:59 -0700 |
| commit | 3fd5687370c3ef28c1878a79f0b4173e7212795f (patch) | |
| tree | 25282d62a576a65e930fd47459d9c9ce05109f90 /code_obj.lua | |
| parent | 77a551099a1d7c1d45036bf14301f7841ee8b8ca (diff) | |
Fixed up line numbers for generated code.
Diffstat (limited to 'code_obj.lua')
| -rw-r--r-- | code_obj.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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, |
