Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
firebase_php
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
firebase_php
Commits
d9118b07
Commit
d9118b07
authored
1 year ago
by
Patrick Kenny
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3448572
by ptmkenny: Provide more detailed debug info when the test message fails
parent
5176db90
No related branches found
No related tags found
1 merge request
!22
add more detailed test message debug info
Pipeline
#178254
passed
1 year ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Form/FirebasePhpSendTestMessageForm.php
+3
-1
3 additions, 1 deletion
src/Form/FirebasePhpSendTestMessageForm.php
with
3 additions
and
1 deletion
src/Form/FirebasePhpSendTestMessageForm.php
+
3
−
1
View file @
d9118b07
...
...
@@ -97,8 +97,10 @@ final class FirebasePhpSendTestMessageForm extends FormBase {
// @phpstan-ignore-next-line Exception is shown to admin, so no rethrowing.
catch
(
\Exception
$e
)
{
Error
::
logException
(
$this
->
logger
(
'firebase_php'
),
$e
);
$this
->
messenger
()
->
addError
(
$this
->
t
(
'Failed to send the test message. Error: %error'
,
[
$details
=
method_exists
(
$e
,
'errors'
)
?
$e
->
errors
()
:
'No details available.'
;
$this
->
messenger
()
->
addError
(
$this
->
t
(
'Failed to send the test message. Error: %error More info: %errorDetails'
,
[
'%error'
=>
$e
->
getMessage
(),
'%errorDetails'
=>
json_encode
(
$details
),
]));
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment