Add error message when import is failing

This commit is contained in:
yflory 2021-02-26 12:35:56 +01:00
parent b7c2858c30
commit c9cec838d9

View file

@ -713,7 +713,10 @@ define([
} }
nThen(function (waitFor) { nThen(function (waitFor) {
var content = fi(c, f); 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); contentUpdate(content, waitFor);
}).nThen(function () { }).nThen(function () {
onLocal(); onLocal();