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:
parent
8a7b2fdd4e
commit
99830b2ea9
@ -212,7 +212,13 @@ Refine.DefaultImportingController.prototype.updateFormatAndOptions = function(op
|
|||||||
},
|
},
|
||||||
function(o) {
|
function(o) {
|
||||||
if (o.status == 'error') {
|
if (o.status == 'error') {
|
||||||
|
if (o.messgae) {
|
||||||
alert(o.message);
|
alert(o.message);
|
||||||
|
} else {
|
||||||
|
var messages = [];
|
||||||
|
$.each(o.errors, function() { messages.push(this.message); });
|
||||||
|
alert(messages.join('\n\n'));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
callback(o);
|
callback(o);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user