Skip to content

Commit

Permalink
BAT gives cryptic error message
Browse files Browse the repository at this point in the history
BAT gives cryptic error message, if director network address is
configured wrong.

Fixes #21: bat gives cryptic error message, if director network address is configured wrong

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
  • Loading branch information
aussendorf authored and Marco van Wieringen committed Feb 17, 2015
1 parent 39c671c commit 93effb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qt-console/console/console.cpp
Expand Up @@ -146,7 +146,8 @@ void Console::populateLists(bool /*forcenew*/)
if (!getDirComm(conn)) {
if (mainWin->m_connDebug) Pmsg0(000, "call newDirComm\n");
if (!newDirComm(conn)) {
Emsg1(M_ABORT, 0, "Failed to connect to %s for populateLists.\n", m_dir->name());
Emsg1(M_ABORT, 0, _("Failed to connect to director %s for populateLists."
" Check, if director's address or hostname is configured properly\n"), m_dir->name());
return;
}
}
Expand Down

0 comments on commit 93effb7

Please sign in to comment.