better error messages
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 22 Aug 2013 08:16:28 +0000 (08:16 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 22 Aug 2013 08:16:28 +0000 (08:16 +0000)
git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@1373 07558da8-63fa-0310-ba24-9fe276d99e06

lib/WebPAC/Normalize.pm

index 4207b95..d2a5865 100644 (file)
@@ -125,7 +125,7 @@ sub data_structure {
        no strict 'subs';
        no warnings 'all';
        eval "$arg->{rules};";
-       die "error evaling $arg->{rules}: $@\n" if ($@);
+       die "error evaling [$@] using rules " . $arg->{rules} . "\n" if ($@);
 
        return _get_ds();
 }