From: Marcin Haba Date: Mon, 27 Nov 2017 20:09:17 +0000 (+0100) Subject: baculum: Add more information to cURL error X-Git-Tag: Release-9.0.7~24 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1b80ddd5c9b07ead12d89cd47a5d3ec9c83d2b43;p=bacula%2Fbacula baculum: Add more information to cURL error --- diff --git a/gui/baculum/protected/Web/Class/BaculumAPIClient.php b/gui/baculum/protected/Web/Class/BaculumAPIClient.php index 5f85e18b85..cf37822031 100644 --- a/gui/baculum/protected/Web/Class/BaculumAPIClient.php +++ b/gui/baculum/protected/Web/Class/BaculumAPIClient.php @@ -444,7 +444,7 @@ class BaculumAPIClient extends WebModule { if (is_null($resource)) { $resource = (object) array( 'error' => ConnectionError::ERROR_CONNECTION_TO_HOST_PROBLEM, - 'output' => ConnectionError::MSG_ERROR_CONNECTION_TO_HOST_PROBLEM . " cURL error $errno: $error" + 'output' => ConnectionError::MSG_ERROR_CONNECTION_TO_HOST_PROBLEM . " cURL error $errno: $error. $result" ); }