Half fix for Issue 459: Undefined error with some CSV files (incorrectly detected as EXCEL) - just made sure the error messages are shown properly rather than "Undefined".

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2312 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2011-10-10 17:46:19 +00:00
parent 8a7b2fdd4e
commit 99830b2ea9

View File

@ -212,7 +212,13 @@ Refine.DefaultImportingController.prototype.updateFormatAndOptions = function(op
},
function(o) {
if (o.status == 'error') {
alert(o.message);
if (o.messgae) {
alert(o.message);
} else {
var messages = [];
$.each(o.errors, function() { messages.push(this.message); });
alert(messages.join('\n\n'));
}
} else {
callback(o);
}