diff options
author | Jarle Bjørgeengen <jarle@bjorgeengen.net> | 2011-02-01 06:52:07 +0000 |
---|---|---|
committer | Jarle Bjørgeengen <jarle@bjorgeengen.net> | 2011-02-01 06:52:07 +0000 |
commit | 68b313970e9edb40d965b14681ed00c145d49a60 (patch) | |
tree | a5668be6213acb0e9e30abbcd69ebdd530b463c2 | |
parent | cf1f6837c4ace5d5129aa8d11572dc6fa86e972d (diff) |
Better error checking
-rwxr-xr-x | tools/gen_frikanalen_video.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gen_frikanalen_video.pl b/tools/gen_frikanalen_video.pl index cfeed65..7cf44f4 100755 --- a/tools/gen_frikanalen_video.pl +++ b/tools/gen_frikanalen_video.pl @@ -95,6 +95,10 @@ my $subdelay = ""; if ( $opts{'s'} ) { $srtfile = getsrtfile(); + if ( ! -f $srtfile ) { + print "$srtfile does not exist\n"; + exit 1 ; + } if ( $opts{'S'} ) { $subdelay = "-subdelay $opts{'S'}"; } |