diff --git a/dzonegit.py b/dzonegit.py index 0626946..b32892e 100644 --- a/dzonegit.py +++ b/dzonegit.py @@ -221,9 +221,13 @@ def check_updated_zones(against, revision=None): if (rold.success and rold.zonehash != rnew.zonehash and not is_serial_increased(rold.serial, rnew.serial)): + errmsg = "Old revision {}, serial {}, new serial {}".format( + against, rold.serial, rnew.serial, + ) raise HookException( "Zone contents changed without increasing serial", fname=f, + stderr=errmsg, ) except subprocess.CalledProcessError: pass # Old version of zone did not exist