From 461a53fa8eafbee41cb54f64241888deef4e2031 Mon Sep 17 00:00:00 2001 From: Wanderlei Huttel Date: Sun, 17 Jul 2016 18:18:08 +0200 Subject: [PATCH] Add error message for truncate command when actiononpurge not set. Fixes bug #2221 --- bacula/src/dird/ua_purge.c | 2 ++ 1 file changed, 2 insertions(+) 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; } /* -- 2.39.5