Add error when asset libraries are not processed

This commit is contained in:
Joshua Granick
2018-05-29 15:13:46 -07:00
parent 5d2ad299fc
commit ba61f9e701

View File

@@ -450,7 +450,27 @@ class AssetHelper {
}
HaxelibHelper.runCommand ("", args);
try {
HaxelibHelper.runCommand ("", args, false);
} catch (e:Dynamic) {
var types = [];
for (library in project.libraries) {
if (library.type != null && project.libraryHandlers.exists (library.type) && project.libraryHandlers.get (library.type) == handler) {
types.push (library.type);
}
}
LogHelper.error ("Could not process asset libraries (" + types.join (", ") + ")");
}
if (FileSystem.exists (outputFile)) {