We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 576767d commit d1161cdCopy full SHA for d1161cd
lib/NoYield.lua
@@ -9,8 +9,8 @@
9
10
local function resultHandler(co, ok, ...)
11
if not ok then
12
- local err = (...)
13
- error(err, 2)
+ local message = (...)
+ error(debug.traceback(co, message), 2)
14
end
15
16
if coroutine.status(co) ~= "dead" then
lib/NoYield.spec.lua
@@ -51,5 +51,6 @@ return function()
51
52
expect(ok).to.equal(false)
53
expect(err:find("foo")).to.be.ok()
54
+ expect(err:find("NoYield.spec")).to.be.ok()
55
end)
56
0 commit comments