Commit dba680bf authored by okhin's avatar okhin
Browse files

Better management of errors

parent 881ab307
Pipeline #824 passed with stage
in 1 second
...@@ -96,10 +96,11 @@ class Main extends Controller { ...@@ -96,10 +96,11 @@ class Main extends Controller {
$f3->set('VERB', 'GET'); $f3->set('VERB', 'GET');
$this->feedbackform($f3, $args); $this->feedbackform($f3, $args);
} catch (RequestException $e) { } catch (RequestException $e) {
print_r(Psr7\str($e->getRequest())); $block_content = print_r(Psr7\str($e->getRequest()));
if ($e->hasResponse()) { if ($e->hasResponse()) {
print_r(Psr7\str($e->getResponse())); $block_content .= print_r(Psr7\str($e->getResponse()));
} }
$f3->set('block_content', $block_cntent);
} }
} }
} }
......
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