Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dmj
PicaAuth
Commits
00fffd41
Commit
00fffd41
authored
May 10, 2016
by
David Maus
Browse files
Simplify error message
* src/HAB/Pica/Auth/AbstractHttpAuthentication.php (sendRequest): Simplify error message.
parent
0638eac0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/HAB/Pica/Auth/AbstractHttpAuthentication.php
View file @
00fffd41
...
...
@@ -55,7 +55,7 @@ abstract class AbstractHttpAuthentication
$ctx
=
stream_context_create
(
$ctxOptions
);
$response
=
file_get_contents
(
$url
,
false
,
$ctx
);
if
(
$response
===
false
)
{
throw
new
RuntimeException
(
"Error sending HTTP
'
{
$method
}
' request to '
{
$url
}
'
"
);
throw
new
RuntimeException
(
"Error sending HTTP
request
"
);
}
$statuscode
=
null
;
...
...
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