diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-20 15:10:04 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-20 15:10:04 -0700 |
| commit | c6819cf1e96f471ef0c278c2063a02ab429094fe (patch) | |
| tree | a00c3430112f8aa67f3bb1a0bf0931524e8ff18b | |
| parent | b909dce5d11e1b9ae15ae68ec8646e162c30b56d (diff) | |
More callstack fixin
| -rw-r--r-- | nomsu.lua | 6 | ||||
| -rwxr-xr-x | nomsu.moon | 2 |
2 files changed, 5 insertions, 3 deletions
@@ -808,8 +808,10 @@ end)]]):format(concat(lua_bits, "\n")) local _list_0 = self.callstack for _index_0 = 1, #_list_0 do local c = _list_0[_index_0] - _accum_0[_len_0] = #c[2] - _len_0 = _len_0 + 1 + if c ~= "#macro" then + _accum_0[_len_0] = #c[2] + _len_0 = _len_0 + 1 + end end return _accum_0 end)()) @@ -584,7 +584,7 @@ end)]])\format(concat(lua_bits, "\n")) if msg @errorln(colored.bright colored.yellow colored.onred msg) @errorln("Callstack:") - maxlen = utils.max([#c[2] for c in *@callstack]) + maxlen = utils.max([#c[2] for c in *@callstack when c != "#macro"]) for i=#@callstack,1,-1 if @callstack[i] != "#macro" @errorln " #{"%-#{maxlen}s"\format @callstack[i][2]}| #{@callstack[i][1]}" |
