]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
ovpnmain.cgi: Log a better message if the RW log file could not be opened
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 3 Jun 2025 10:44:33 +0000 (12:44 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 3 Jun 2025 10:44:33 +0000 (12:44 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ovpnmain.cgi

index fd3e38e84573f09d8b000531a9739efe71f88b9c..adf09029baeffb41e841310cf071fea7ec18f0a1 100644 (file)
@@ -3089,7 +3089,7 @@ END
                        </tr>
 END
 
-       open(FILE, $RW_STATUS) or die 'Unable to open $RW_STATUS.';
+       open(FILE, $RW_STATUS) or die "Unable to open $RW_STATUS: $!";
        my @current = <FILE>;
        close(FILE);