summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgenerate_gallery.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/generate_gallery.pl b/generate_gallery.pl
index 8373fd2..2ed3215 100755
--- a/generate_gallery.pl
+++ b/generate_gallery.pl
@@ -83,7 +83,7 @@ for my $dir (@ARGV) {
$html .= "</a>\n</div>\n";
}
open TEMPLATE, "<", "$opts{template}";
- open OUTPUT, ">", "$abs_dir/index.html";
+ open OUTPUT, ">", "$abs_dir/index.html" or die "Failed to open output file: $!";
while (<TEMPLATE>) {
if (/%%CONTENT%%/) {
print OUTPUT $html;