]> git.proxmox.com Git - pve-xtermjs.git/commitdiff
fix error message
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 11 Dec 2017 13:23:58 +0000 (14:23 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 11 Dec 2017 13:38:21 +0000 (14:38 +0100)
status_line is a method and cannot be expanded in a string

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/PVE/CLI/termproxy.pm

index 162833755b505792be91e05c3914491360eb634c..28935b498e981380e9a1420ab2b88f93d955c274 100644 (file)
@@ -30,7 +30,8 @@ sub verify_ticket {
     my $res = $ua->post ('http://localhost:85/api2/json/access/ticket', Content => $params);
 
     if (!$res->is_success) {
-       die "Authentication failed: '$res->status_line'\n";
+       my $err = $res->status_line;
+       die "Authentication failed: '$err'\n";
     }
 }