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

Dominik Csapak d.csapak at proxmox.com
Mon Dec 11 10:58:21 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 dae1dfd..473d2f8 100644
--- a/src/PVE/CLI/termproxy.pm
+++ b/src/PVE/CLI/termproxy.pm
@@ -37,7 +37,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