Commit a724e21c authored by okhin's avatar okhin 🚴

Better management of errors

parent 65d27494
Pipeline #826 passed with stage
in 1 second
......@@ -96,9 +96,9 @@ class Main extends Controller {
$f3->set('VERB', 'GET');
$this->feedbackform($f3, $args);
} catch (RequestException $e) {
$block_content = print_r(Psr7\str($e->getRequest()));
$block_content = Psr7\str($e->getRequest());
if ($e->hasResponse()) {
$block_content .= print_r(Psr7\str($e->getResponse()));
$block_content .= Psr7\str($e->getResponse());
}
$f3->set('block_content', $block_content);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment