[pve-devel] [PATCH v2 3/3] fix error message
Dominik Csapak
d.csapak at proxmox.com
Mon Dec 11 11:28:26 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 7378821..c524671 100644
--- a/src/PVE/CLI/termproxy.pm
+++ b/src/PVE/CLI/termproxy.pm
@@ -32,7 +32,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