jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1024933?usp=email )

Change subject: [tests] add site informaton to UserRightsError
......................................................................

[tests] add site informaton to UserRightsError

Change-Id: I8ff7a1db8c87529b10b9e8a15c182dafbd7d732e
---
M pywikibot/site/_decorators.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/pywikibot/site/_decorators.py b/pywikibot/site/_decorators.py
index 6539355..5d1a31b 100644
--- a/pywikibot/site/_decorators.py
+++ b/pywikibot/site/_decorators.py
@@ -89,7 +89,7 @@
                     rights = '.'
                 raise UserRightsError(
                     f'User "{self.user()}" does not have required user right '
-                    f'"{right}"{rights}')
+                    f'"{right}" on site {self}{rights}')
             return fn(self, *args, **kwargs)

         manage_wrapping(callee, fn)

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1024933?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I8ff7a1db8c87529b10b9e8a15c182dafbd7d732e
Gerrit-Change-Number: 1024933
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to