Mercurial > p > roundup > code
diff roundup/rest.py @ 6510:d5a3fe9ac12d
Make error message for bad apiver a little better.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 16 Oct 2021 16:43:50 -0400 |
| parents | 1fc765ef6379 |
| children | df4f955544aa |
line wrap: on
line diff
--- a/roundup/rest.py Sat Oct 16 13:34:04 2021 -0400 +++ b/roundup/rest.py Sat Oct 16 16:43:50 2021 -0400 @@ -1949,8 +1949,8 @@ self.api_version = None except (ValueError, TypeError): # TypeError if int(None) - msg = ("Unrecognized version: %s. " - "See /rest without specifying version " + msg = ("Unrecognized api version: %s. " + "See /rest without specifying api version " "for supported versions." % ( part[1]['version'])) output = self.error_obj(400, msg) @@ -2030,8 +2030,8 @@ report_stats = False # check for @apiver in query string - msg = ("Unrecognized version: %s. " - "See /rest without specifying version " + msg = _("Unrecognized api version: %s. " + "See /rest without specifying api version " "for supported versions.") try: if not self.api_version:
