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 committed Apr 28, 2014
1 parent 2b27972 commit 9514331
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dird/dird.c
Expand Up @@ -313,7 +313,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 9514331

Please sign in to comment.