]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:tests: Produce more helpful error message for future GKIDs
authorJo Sutton <josutton@catalyst.net.nz>
Thu, 11 Jan 2024 00:49:58 +0000 (13:49 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 16 Feb 2024 02:41:36 +0000 (02:41 +0000)
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/gkdi.py

index 375b444414cef4f0980c90acb713b354b294c342..3ea8afd81463aaed33ad679aa0a11f7d6c86b04f 100644 (file)
@@ -246,7 +246,8 @@ class GkdiBaseTest(TestCase):
     ) -> None:
         if gkid > current_gkid:
             raise GetKeyError(
-                HRES_E_INVALIDARG, "invalid request for a key from the future"
+                HRES_E_INVALIDARG,
+                f"invalid request for a key from the future: {gkid} > {current_gkid}",
             )
 
         gkid_type = gkid.gkid_type()