isaacscript-common 1.0.518 → 1.0.519

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,12 +16,12 @@ function errorWithTraceback(message, level)
16
16
  local tracebackOutput = getTraceback(nil)
17
17
  local slimmedTracebackOutput = slimTracebackOutput(nil, tracebackOutput)
18
18
  Isaac.DebugString(slimmedTracebackOutput)
19
- vanillaError(message, level + 1)
19
+ return vanillaError(message, level + 1)
20
20
  end
21
21
  function slimTracebackOutput(self, tracebackOutput)
22
22
  local lineSeparator = "\n"
23
23
  local lines = __TS__StringSplit(tracebackOutput, lineSeparator)
24
- if __TS__StringIncludes(lines[2], "in upvalue 'getTraceback'") then
24
+ if __TS__StringIncludes(lines[2], "in upvalue 'getTraceback'") or __TS__StringIncludes(lines[2], "in function 'sandboxGetTraceback'") then
25
25
  __TS__ArraySplice(lines, 1, 1)
26
26
  end
27
27
  if __TS__StringIncludes(lines[2], "in function 'error'") then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.0.518",
3
+ "version": "1.0.519",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",