]> git.proxmox.com Git - pmg-api.git/commitdiff
dkim: signer: header: add a '\n' to die statements.
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 26 Feb 2024 15:34:12 +0000 (16:34 +0100)
committerStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 26 Feb 2024 15:34:20 +0000 (16:34 +0100)
prevents printing the location of the error - e.g.
`at /usr/share/perl5/PMG/DKIMSign.pm line 118`.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PMG/DKIMSign.pm

index 5af2762f15e13fd68c63b0208246da5daa4bed9a..3e4c5156718e248abfb0e763da0c2122df2a02ef 100644 (file)
@@ -107,8 +107,8 @@ sub parse_headers_for_signing {
        $domain = $addresses[0]->host() if scalar(@addresses) > 0;
     }
 
-    die "there is more than one sender in the header" if $from_count > 1;
-    die "there is no sender in the header" if $from_count == 0;
+    die "there is more than one sender in the header\n" if $from_count > 1;
+    die "there is no sender in the header\n" if $from_count == 0;
     return $domain;
 }