Skip to content

Commit

Permalink
Give hint on db update scripts on version error
Browse files Browse the repository at this point in the history
When we get an db version error, give a clear hint
to run the db update scripts instead of only
asking to correct the config file.
  • Loading branch information
pstorz authored and Marco van Wieringen committed May 2, 2014
1 parent 3e72d77 commit 95ad9a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dird/dird.c
Expand Up @@ -303,7 +303,8 @@ int main (int argc, char *argv[])
mode = (test_config) ? CHECK_CONNECTION : UPDATE_AND_FIX;

if (!check_catalog(mode)) {
Jmsg((JCR *)NULL, M_ERROR_TERM, 0, _("Please correct configuration file: %s\n"), configfile);
Jmsg((JCR *)NULL, M_ERROR_TERM, 0, _("Please correct configuration file: %s\n"
" on version error, please run the db update scripts\n"), configfile);
goto bail_out;
}

Expand Down

0 comments on commit 95ad9a9

Please sign in to comment.