Improve asset error events

This commit is contained in:
Joshua Granick
2017-02-21 15:40:17 -08:00
parent 23f98d6341
commit f1e5d40b8e
2 changed files with 7 additions and 7 deletions

View File

@@ -187,7 +187,7 @@ class Preloader #if flash extends Sprite #end {
}).onError (function (e) {
trace (e);
Log.error (e);
});
@@ -331,7 +331,7 @@ class Preloader #if flash extends Sprite #end {
}).onError (function (e) {
trace (e);
Log.error (e);
});

View File

@@ -419,13 +419,13 @@ class Assets {
} else {
return Future.withError ("[Assets] There is no " + type + " asset with an ID of \"" + id + "\"");
return Future.withError ("There is no " + type + " asset with an ID of \"" + id + "\"");
}
} else {
return Future.withError ("[Assets] There is no asset library named \"" + symbol.libraryName + "\"");
return Future.withError ("There is no asset library named \"" + symbol.libraryName + "\"");
}
@@ -479,7 +479,7 @@ class Assets {
if (manifest == null) {
promise.error ("[Assets] Cannot parse asset manifest for library \"" + name + "\"");
promise.error ("Cannot parse asset manifest for library \"" + name + "\"");
return;
}
@@ -496,7 +496,7 @@ class Assets {
if (library == null) {
promise.error ("[Assets] Cannot open library \"" + name + "\"");
promise.error ("Cannot open library \"" + name + "\"");
} else {
@@ -508,7 +508,7 @@ class Assets {
}).onError (function (_) {
promise.error ("[Assets] There is no asset library named \"" + name + "\"");
promise.error ("There is no asset library named \"" + name + "\"");
});