Change error message

master
vitalif 2013-01-16 15:16:49 +00:00 committed by Vitaliy Filippov
parent f4b2ade179
commit 7c4b926cc5
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ var nicImageUploadGTButton = nicEditorAdvancedButton.extend({
if (res && (res.file || res.duplicate)) {
self.onUploaded(res);
} else {
alert(__('Error uploading file') + (res && res.error ? ': '+res.error : ''));
alert(__('Failed to upload image') + (res && (res.exception || res.error) ? ': '+(res.exception || res.error) : ''));
}
};
xhr.onerror = function(e) { alert(__('Error uploading file')+': '+e); };