Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
piphone
piphone-front
Commits
dba680bf
Commit
dba680bf
authored
Jan 31, 2017
by
okhin
Browse files
Better management of errors
parent
881ab307
Pipeline
#824
passed with stage
in 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Main.php
View file @
dba680bf
...
@@ -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
);
}
}
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment