aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-10-20 15:10:04 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-10-20 15:10:04 -0700
commitc6819cf1e96f471ef0c278c2063a02ab429094fe (patch)
treea00c3430112f8aa67f3bb1a0bf0931524e8ff18b /nomsu.moon
parentb909dce5d11e1b9ae15ae68ec8646e162c30b56d (diff)
More callstack fixin
Diffstat (limited to 'nomsu.moon')
-rwxr-xr-xnomsu.moon2
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu.moon b/nomsu.moon
index 8512fd7..1f5c05d 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -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]}"