Subject: | Exception messages containing an "at" |
Date: | Thu, 19 Mar 2009 23:37:46 +0100 |
To: | bug-Devel-SimpleTrace [...] rt.cpan.org |
From: | Nils Boysen <nils [...] boysen.info> |
Hi Sébastien,
it looks like Devel::SimpleTrace has a problem with error messages that
contain an "at" - i.e.:
use Devel::SimpleTrace;
die("I wonder at what point this breaks.");
The message will be cut after "I wonder"...
Updating the regex like this seems to work:
# $msg =~ s/ at (.+) line (\d+)\.$//;
$msg =~ s/^(.*)at (.+?) line (\d+)\./$1/g;
...
_stack_trace($2, $3);
Or am I missing something...?
Otherwise a very helpful module!
Thanx
Greetz Nils.