]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Add more information to cURL error
authorMarcin Haba <marcin.haba@bacula.pl>
Mon, 27 Nov 2017 20:09:17 +0000 (21:09 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 9 Dec 2017 11:01:10 +0000 (12:01 +0100)
gui/baculum/protected/Web/Class/BaculumAPIClient.php

index 5f85e18b85ac39e111207f4275a73ab3d457c521..cf37822031accc3bbf011a4c09c5232bc8fdb193 100644 (file)
@@ -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"
                        );
                }