From 702fc7d5841fe6e0447721fef266b4072fc77491 Mon Sep 17 00:00:00 2001 From: iliajie Date: Thu, 18 May 2023 19:53:24 +0300 Subject: [PATCH] Fix to return error straight away --- web-lib-funcs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index 3fc6b7662..956ff60c1 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -13079,7 +13079,7 @@ if (ref($h)) { $rs{'response'} = $h->{'buffer'}; } else { - $rs{'error'} = $h + return { 'error' => $h }; } if (ref($h)) { if ($h->{'buffer'} =~ /has\s+moved\s+