From bd4dd5cdc2c4a2c6e19671f69e8c9bd67c9e8b7e Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 25 Jul 2010 22:10:27 +0200 Subject: [PATCH] Tweak error message --- bacula/src/filed/fd_plugins.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ } -- 2.39.5