status_line is a method and cannot be expanded in a string Signed-off-by: Dominik Csapak <d.csa...@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 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel