This commit is contained in:
Kovid Goyal 2019-09-26 09:30:32 +05:30
parent d83698bdd2
commit ff162a2b8f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -235,7 +235,7 @@ class ReadUI:
return return
if end_type is not 'load': if end_type is not 'load':
return self.show_error(_('Failed to load book manifest'), return self.show_error(_('Failed to load book manifest'),
_('Could not open {title} as the book manifest failed to load, click "Show Details" for more information.').format(title=self.current_metadata.title), _('The book manifest failed to load, click "Show Details" for more information.').format(title=self.current_metadata.title),
xhr.error_html) xhr.error_html)
try: try:
manifest = JSON.parse(xhr.responseText) manifest = JSON.parse(xhr.responseText)
@ -370,7 +370,7 @@ class ReadUI:
return return
if end_type is not 'load': if end_type is not 'load':
return self.show_error(_('Failed to load MathJax manifest'), return self.show_error(_('Failed to load MathJax manifest'),
_('Could not open {title} as the MathJax manifest failed to load, click "Show Details" for more information.').format(title=self.current_metadata.title), _('The MathJax manifest failed to load, click "Show Details" for more information.').format(title=self.current_metadata.title),
xhr.error_html) xhr.error_html)
try: try:
manifest = JSON.parse(xhr.responseText) manifest = JSON.parse(xhr.responseText)