From: Eric Bollengier Date: Thu, 26 Jan 2012 12:47:35 +0000 (+0100) Subject: Add error message to .bvfs_clear_cache command X-Git-Tag: Release-7.0.0~307 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=87c3429e42667768f5354af720e865d5b565cb01;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; }