Commit 3db18bc5 authored by owsla's avatar owsla

Improve error message if regress operation fails due to Security Violation.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@1018 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 55003e81
New in v1.3.2 (????/??/??)
---------------------------
Improve error message if regress operation fails due to Security Violation.
Thanks to Grzegorz Marszalek for the bug report. (Andrew Ferguson)
New in v1.3.1 (2009/01/27)
......
......@@ -919,4 +919,9 @@ def checkdest_if_necessary(dest_rp):
if need_check == 1:
Log("Previous backup seems to have failed, regressing "
"destination now.", 2)
dest_rp.conn.regress.Regress(dest_rp)
try:
dest_rp.conn.regress.Regress(dest_rp)
except Security.Violation:
Log.FatalError("Security violation while attempting to regress "
"destination, perhaps due to --restrict-read-only "
"or --restrict-update-only.")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment