]> git.ipfire.org Git - thirdparty/bacula.git/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)
committerMarcin Haba <marcin.haba@bacula.pl>
Mon, 27 Nov 2017 20:50:07 +0000 (21:50 +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"
                        );
                }