Add error message when import is failing

pull/1/head
yflory 4 years ago
parent b7c2858c30
commit c9cec838d9

@ -713,7 +713,10 @@ define([
}
nThen(function (waitFor) {
var content = fi(c, f);
if (typeof(content) === "undefined") { return; }
if (typeof(content) === "undefined") {
Messages.importError = "Failed to import (wrong format)"; // XXX
return void UI.warn(Messages.importError);
}
contentUpdate(content, waitFor);
}).nThen(function () {
onLocal();

Loading…
Cancel
Save