[pve-devel] [PATCH v3 3/3] fix error message

Dominik Csapak d.csapak at proxmox.com
Mon Dec 11 14:23:58 CET 2017


status_line is a method and cannot be expanded in a string

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 src/PVE/CLI/termproxy.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/PVE/CLI/termproxy.pm b/src/PVE/CLI/termproxy.pm
index 1628337..28935b4 100644
--- a/src/PVE/CLI/termproxy.pm
+++ b/src/PVE/CLI/termproxy.pm
@@ -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";
     }
 }
 
-- 
2.11.0





More information about the pve-devel mailing list