From 5c2441fe0d0a0f4b47263346793d3dc3a4fdf74b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 16 Nov 2015 11:31:56 +0530 Subject: [PATCH] ... --- src/pyj/ajax.pyj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pyj/ajax.pyj b/src/pyj/ajax.pyj index 63c9a3f673..6321ffa696 100644 --- a/src/pyj/ajax.pyj +++ b/src/pyj/ajax.pyj @@ -23,12 +23,12 @@ def ajax(path, on_complete, on_progress=None, bypass_cache=True, method='GET', q def set_error(event): if event == 'timeout': - xhr.error_string = str.format(_('Failed to download data from "{}", timed out after: {} seconds'), xhr.request_path, timeout/1000) + xhr.error_string = str.format(_('Failed to communicate with "{}", timed out after: {} seconds'), xhr.request_path, timeout/1000) elif event == 'abort': - xhr.error_string = str.format(_('Failed to download data from "{}", aborted'), xhr.request_path) + xhr.error_string = str.format(_('Failed to communicate with "{}", aborted'), xhr.request_path) else: rtext = xhr.responseText or '' - xhr.error_string = str.format(_('Failed to download data from "{}", with status: [{}] {}
{}'), xhr.request_path, xhr.status, xhr.statusText, rtext[:200]) + xhr.error_string = str.format(_('Failed to communicate with "{}", with status: [{}] {}
{}'), xhr.request_path, xhr.status, xhr.statusText, rtext[:200]) def progress_callback(ev): if ev.lengthComputable: