Add error message when import is failing
This commit is contained in:
parent
b7c2858c30
commit
c9cec838d9
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue