Add handler to produce a proper backtrace on error
authorRalf Ertzinger <ralf@skytale.net>
Wed, 8 May 2013 07:47:11 +0000 (09:47 +0200)
committerRalf Ertzinger <ralf@skytale.net>
Wed, 8 May 2013 07:47:11 +0000 (09:47 +0200)
videosite-dl.pl
videosite-irssi.pl
videosite-test.pl
videosite-weechat.pl

index 1225b92..594b020 100755 (executable)
@@ -6,6 +6,9 @@ use File::Spec;
 use File::Basename;
 use Module::Load;
 use Cwd qw(realpath);
+use Carp;
+
+$SIG{ __DIE__ } = sub { Carp::confess( @_ ) };
 
 my $info = 0;
 my $debug = 0;
index 2e5a0ec..86e370d 100644 (file)
@@ -9,6 +9,9 @@ use File::Spec;
 use Module::Load;
 use XML::Simple;
 use JSON -support_by_pp;
+use Carp;
+
+$SIG{ __DIE__ } = sub { Carp::confess( @_ ) };
 
 #
 # List of foreground colors. This list is not complete, it just
index 0d9e771..1f3d146 100755 (executable)
@@ -6,6 +6,9 @@ use File::Spec;
 use File::Basename;
 use Module::Load;
 use Cwd qw(realpath);
+use Carp;
+
+$SIG{ __DIE__ } = sub { Carp::confess( @_ ) };
 
 my $debug = 0;
 my %config = (
index 4693df4..9fc882b 100644 (file)
@@ -6,6 +6,9 @@ use strict;
 use File::Spec;
 use Module::Load;
 use Data::Dumper;
+use Carp;
+
+$SIG{ __DIE__ } = sub { Carp::confess( @_ ) };
 
 weechat::register(
     "videosite",