From: Kern Sibbald Date: Sun, 25 Jul 2010 20:10:27 +0000 (+0200) Subject: Tweak error message X-Git-Tag: Release-5.0.3~53 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bd4dd5cdc2c4a2c6e19671f69e8c9bd67c9e8b7e;p=bacula%2Fbacula Tweak error message --- diff --git a/bacula/src/filed/fd_plugins.c b/bacula/src/filed/fd_plugins.c index 948b5d54cf..f67db0974c 100644 --- a/bacula/src/filed/fd_plugins.c +++ b/bacula/src/filed/fd_plugins.c @@ -219,8 +219,8 @@ int plugin_save(JCR *jcr, FF_PKT *ff_pkt, bool top_level) POOL_MEM fname(PM_FNAME); POOL_MEM link(PM_FNAME); - if (!plugin_list || !jcr->plugin_ctx_list || job_canceled(jcr)) { - Jmsg1(jcr, M_FATAL, 0, "Command plugin \"%s\" not loaded.\n", cmd); + if (!plugin_list || !jcr->plugin_ctx_list || jcr->is_job_canceled()) { + Jmsg1(jcr, M_FATAL, 0, "Command plugin \"%s\" requested, but is not loaded.\n", cmd); return 1; /* Return if no plugins loaded */ }