From 162a8ed6d5abf8bb1e36a4f5794073f7870fd20c Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Tue, 22 Oct 2013 19:11:57 +0200 Subject: errors inside finalizers generate a full stack just like any other error --- tests/error.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/error.lua b/tests/error.lua index c4a64e3..91015d8 100644 --- a/tests/error.lua +++ b/tests/error.lua @@ -4,8 +4,7 @@ -- Note: this code is supposed to end in errors; not included in 'make test' -- -local lanes = require "lanes" -lanes.configure() +local lanes = require "lanes".configure() local function lane() @@ -32,7 +31,7 @@ local h= lgen() local _,err,stack= h:join() -- wait for the lane (no automatic error propagation) if err then - assert( type(stack)=="table" ) + assert( type(stack)=="table" ) -- only true if lanes was compiled with ERROR_FULL_STACK == 1 io.stderr:write( "Lane error: "..tostring(err).."\n" ) io.stderr:write( "\t", table.concat(stack,"\n\t"), "\n" ); -- cgit v1.2.3-55-g6feb