]> git.ipfire.org Git - people/stevee/guardian.git/blobdiff - modules/Config.pm
Adjust error messages in case of failure.
[people/stevee/guardian.git] / modules / Config.pm
index 9f2fc55c89c2bbe6b769ac8976c40af36e562826..9a8e1fd582e6f7a7ee6fcb70e6f47c5ad383ac50 100644 (file)
@@ -56,7 +56,7 @@ sub UseConfig ($) {
 
        # If an error message is returned, exit and print the error message.
        } else {
-               die "Invalid configuration: $error\n";
+               die "Invalid configuration: $error";
        }
 }
 
@@ -74,11 +74,11 @@ sub ReadConfig ($) {
 
        # Check if the configfile exists and is read-able.
        unless (-r "$file") {
-                       die "The given configfile ($file) does not exist, or is not read-able: $!\n";
+                       die "The given configfile ($file) does not exist, or is not read-able: $!";
        }
 
        # Open the config file and read-in all configuration options and values.
-       open(CONF, "$file") or die "Could not open $file: $!\n";
+       open(CONF, "$file") or die "Could not open $file: $!";
 
        # Process line by line.
        while (my $line = <CONF>) {