fix(HTTPError): Correct typo in default link text, make more generic
Correct the link text typo "documention" to "documentation". Also make the text more generic by removing the reference to "API".
This commit is contained in:
@@ -102,7 +102,7 @@ class HTTPError(Exception):
|
||||
|
||||
if href:
|
||||
link = self.link = OrderedDict()
|
||||
link['text'] = (href_text or 'API documention for this error')
|
||||
link['text'] = (href_text or 'Documentation related to this error')
|
||||
link['href'] = uri.encode(href)
|
||||
link['rel'] = 'help'
|
||||
else:
|
||||
|
||||
@@ -341,7 +341,7 @@ class TestHTTPError(testing.TestBase):
|
||||
'description': ('You do not have write permissions for this '
|
||||
'queue.'),
|
||||
'link': {
|
||||
'text': 'API documention for this error',
|
||||
'text': 'Documentation related to this error',
|
||||
'href': 'http://example.com/api/rbac',
|
||||
'rel': 'help',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user