Better message in case the server returns an unexpected status (bug 657839)

This commit is contained in:
Kumar McMillan 2011-06-17 17:47:31 -05:00
Родитель 37adbf3165
Коммит 12b7a43356
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -115,7 +115,9 @@
$upload_field.trigger("upload_finished", [file]);
} else if(formData.xhr.readyState == 4 && !aborted) {
errors = [gettext("There was a problem contacting the server.")];
// L10n: first argument is an HTTP status code
errors = [format(gettext("Received an empty response from the server; status: {0}"),
[formData.xhr.status])];
$upload_field.trigger("upload_errors", [file, errors]);
}
};