From a4bfe5e687a7ebd933f486995eb1857b1059c416 Mon Sep 17 00:00:00 2001
From: David Maus <maus@hab.de>
Date: Wed, 22 May 2013 10:40:51 +0200
Subject: [PATCH] Prefix reason phrase with status code

* VuFindSearch/Backend/Exception/BackendException.php (static): Prefix
  reason phrase with status code.
---
 .../src/VuFindSearch/Backend/Exception/BackendException.php   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/Exception/BackendException.php b/module/VuFindSearch/src/VuFindSearch/Backend/Exception/BackendException.php
index 564eb783835..0e0355bdaea 100644
--- a/module/VuFindSearch/src/VuFindSearch/Backend/Exception/BackendException.php
+++ b/module/VuFindSearch/src/VuFindSearch/Backend/Exception/BackendException.php
@@ -75,9 +75,9 @@ class BackendException extends RuntimeException
         $status = $response->getStatusCode();
         $phrase = $response->getReasonPhrase();
         if ($status >= 500) {
-            return new RemoteErrorException($phrase, $status, $response);
+            return new RemoteErrorException($status . ' ' . $phrase, $status, $response);
         } else {
-            return new RequestErrorException($phrase, $status, $response);
+            return new RequestErrorException($status . ' ' . $phrase, $status, $response);
         }
     }
 
-- 
GitLab