]> mj.ucw.cz Git - gallery.git/commitdiff
gal front-end: Improved log message
authorMartin Mares <mj@ucw.cz>
Mon, 18 May 2020 12:32:43 +0000 (14:32 +0200)
committerMartin Mares <mj@ucw.cz>
Mon, 18 May 2020 12:32:43 +0000 (14:32 +0200)
gal

diff --git a/gal b/gal
index c62d0d86385dbd494d7a27294be72a0603b7e65b..81e94c18a41fde1f174910fc1bccecf8a55124b6 100755 (executable)
--- a/gal
+++ b/gal
@@ -96,7 +96,7 @@ while ($running || @dirs) {
                if (!$pid) {
                        if ($logging) {
                                close STDOUT;
-                               open STDOUT, '>', "$dir/gallery.log" or die;
+                               open STDOUT, '>', "$dir/gallery.log" or die "Unable to create $dir/gallery.log: $!\n";
                                close STDERR;
                                open STDERR, '>&STDOUT';
                        }