summaryrefslogtreecommitdiffstats
path: root/lib/MDK/Common
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-06 13:39:43 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-06 13:39:43 +0000
commit8d4dae3b9fbdbf9ed1494d9dbcf6e16bc0ad0606 (patch)
tree4c34b9fce45af8dfe05c50984c21b67fe3c796b5 /lib/MDK/Common
parent080a8401fcb33fa4a0372db3017edf84fb902868 (diff)
downloadperl-MDK-Common-8d4dae3b9fbdbf9ed1494d9dbcf6e16bc0ad0606.tar
perl-MDK-Common-8d4dae3b9fbdbf9ed1494d9dbcf6e16bc0ad0606.tar.gz
perl-MDK-Common-8d4dae3b9fbdbf9ed1494d9dbcf6e16bc0ad0606.tar.bz2
perl-MDK-Common-8d4dae3b9fbdbf9ed1494d9dbcf6e16bc0ad0606.tar.xz
perl-MDK-Common-8d4dae3b9fbdbf9ed1494d9dbcf6e16bc0ad0606.zip
(formatError) make it safer (it now handles exceptions containing " at ")
Diffstat (limited to 'lib/MDK/Common')
-rw-r--r--lib/MDK/Common/String.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MDK/Common/String.pm b/lib/MDK/Common/String.pm
index 40eee1d..fe2c299 100644
--- a/lib/MDK/Common/String.pm
+++ b/lib/MDK/Common/String.pm
@@ -101,7 +101,7 @@ sub formatError {
my ($err) = @_;
if (!$::testing) {
$err =~ s/Uncaught exception from user code:\n\t//s; #- happens with "use diagnostics"
- $err =~ s/ at .*?$/./s;
+ $err =~ s/ at \Q$0\E line .*?$/./s;
}
$err;
}