]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Show error message after connection to api test
authorMarcin Haba <marcin.haba@bacula.pl>
Wed, 11 Apr 2018 18:52:19 +0000 (20:52 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Sat, 14 Apr 2018 13:07:03 +0000 (15:07 +0200)
gui/baculum/protected/Common/Portlets/NewHost.php

index ebd2c45db8af600ef16f3c0a66fd31fbcb7547a7..3cdb464fe796cd135b7855e7bbe6c0803f025790 100644 (file)
@@ -112,6 +112,16 @@ class NewHost extends PortletTemplate {
                        $status_ok = $is_config;
                }
 
+               if (!$is_catalog) {
+                       $this->APITestResultErr->Text .= $catalog->output . '<br />';
+               }
+               if (!$is_console) {
+                       $this->APITestResultErr->Text .= $console->output . '<br />';
+               }
+               if (!$is_config) {
+                       $this->APITestResultErr->Text .= $config->output . '<br />';
+               }
+
                $this->APITestResultOk->Display = ($status_ok === true) ? 'Dynamic' : 'None';
                $this->APITestResultErr->Display = ($status_ok === false) ? 'Dynamic' : 'None';
                $this->APICatalogSupportYes->Display = ($is_catalog === true) ? 'Dynamic' : 'None';