From: Wanderlei Huttel Date: Sun, 17 Jul 2016 16:18:08 +0000 (+0200) Subject: Add error message for truncate command when actiononpurge not set. Fixes bug #2221 X-Git-Tag: Release-7.4.3~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=461a53fa8eafbee41cb54f64241888deef4e2031;p=bacula%2Fbacula Add error message for truncate command when actiononpurge not set. Fixes bug #2221 --- diff --git a/bacula/src/dird/ua_purge.c b/bacula/src/dird/ua_purge.c index 31b4b7e4b4..e8f6a77c2e 100644 --- a/bacula/src/dird/ua_purge.c +++ b/bacula/src/dird/ua_purge.c @@ -577,6 +577,8 @@ static void do_truncate_on_purge(UAContext *ua, MEDIA_DBR *mr, /* Do it only if action on purge = truncate is set */ if (!(mr->ActionOnPurge & ON_PURGE_TRUNCATE)) { + ua->error_msg(_("\nThe option \"Action On Purge = Truncate\" was not defined in the Pool resource.\n" + "Unable to truncate volume \"%s\"\n"), mr->VolumeName); return; } /*