From 00fffd4181123f2fcc0935d8b91fde8cee59b056 Mon Sep 17 00:00:00 2001 From: David Maus <maus@hab.de> Date: Tue, 10 May 2016 09:21:37 +0200 Subject: [PATCH] Simplify error message * src/HAB/Pica/Auth/AbstractHttpAuthentication.php (sendRequest): Simplify error message. --- src/HAB/Pica/Auth/AbstractHttpAuthentication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HAB/Pica/Auth/AbstractHttpAuthentication.php b/src/HAB/Pica/Auth/AbstractHttpAuthentication.php index e76a963..ae0ab0b 100644 --- a/src/HAB/Pica/Auth/AbstractHttpAuthentication.php +++ b/src/HAB/Pica/Auth/AbstractHttpAuthentication.php @@ -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; -- GitLab