summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarle Bjørgeengen <jarle@bjorgeengen.net>2011-02-01 06:52:07 +0000
committerJarle Bjørgeengen <jarle@bjorgeengen.net>2011-02-01 06:52:07 +0000
commit68b313970e9edb40d965b14681ed00c145d49a60 (patch)
treea5668be6213acb0e9e30abbcd69ebdd530b463c2
parentcf1f6837c4ace5d5129aa8d11572dc6fa86e972d (diff)
Better error checking
-rwxr-xr-xtools/gen_frikanalen_video.pl4
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'}";
}