From f9998b50e84c44dbf24edd9e532c997865f5bc48 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Sun, 21 Jan 2024 14:47:21 -0800 Subject: [PATCH] Rephrase documentation and link to docs on exit codes feature (#798). --- NEWS | 4 +++- docs/how-to/customize-warnings-and-errors.md | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index bc92c28..ef7758a 100644 --- a/NEWS +++ b/NEWS @@ -1,7 +1,9 @@ 1.8.7 * #736: Store included configuration files within each backup archive in support of the "config bootstrap" action. Previously, only top-level configuration files were stored. - * #798: Elevate specific Borg warnings to errors or squash errors to warnings. + * #798: Elevate specific Borg warnings to errors or squash errors to + * warnings. See the documentation for more information: + https://torsion.org/borgmatic/docs/how-to/customize-warnings-and-errors/ * #810: SECURITY: Prevent shell injection attacks within the PostgreSQL hook, the MongoDB hook, the SQLite hook, the "borgmatic borg" action, and command hook variable/constant interpolation. * #814: Fix a traceback when providing an invalid "--override" value for a list option. diff --git a/docs/how-to/customize-warnings-and-errors.md b/docs/how-to/customize-warnings-and-errors.md index 2088458..65052d7 100644 --- a/docs/how-to/customize-warnings-and-errors.md +++ b/docs/how-to/customize-warnings-and-errors.md @@ -82,5 +82,5 @@ a backup file is not found: terminating with warning status, rc 107 ``` -The exit status to use in that case would be `107` if you want to configure -borgmatic to treat it as an error. +So if you want to configure borgmatic to treat this as an error instead of a +warning, the exit status to use is `107`.