]> git.sur5r.net Git - bacula/bacula/commitdiff
Add error message to .bvfs_clear_cache command
authorEric Bollengier <eric@baculasystems.com>
Thu, 26 Jan 2012 12:47:35 +0000 (13:47 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:30 +0000 (14:50 +0200)
bacula/src/dird/ua_dotcmds.c

index c7d26095a6a34dcfcb13a46019e2ba89636657bd..0669288b2ce0a35a7d448b36e22706b7f28cf8ef 100644 (file)
@@ -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;
 }