From: Eric Bollengier Date: Thu, 26 Jan 2012 12:47:35 +0000 (+0100) Subject: Add error message to .bvfs_clear_cache command X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6f0718e1d3e578f22aaca09431c2d9d124599889;p=bacula%2Fbacula Add error message to .bvfs_clear_cache command --- diff --git a/bacula/src/dird/ua_dotcmds.c b/bacula/src/dird/ua_dotcmds.c index c7d26095a6..0669288b2c 100644 --- a/bacula/src/dird/ua_dotcmds.c +++ b/bacula/src/dird/ua_dotcmds.c @@ -207,7 +207,10 @@ static bool dot_bvfs_clear_cache(UAContext *ua, const char *cmd) Bvfs fs(ua->jcr, ua->db); fs.clear_cache(); ua->info_msg("OK\n"); - } + } else { + ua->error_msg("Can't find 'yes' argument\n"); + } + close_db(ua); return true; }