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:
Kurt Griffiths
2015-02-04 17:28:42 -06:00
parent 5bc5ac7502
commit bbc0882132
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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',
},