Improve asset error events
This commit is contained in:
@@ -187,7 +187,7 @@ class Preloader #if flash extends Sprite #end {
|
|||||||
|
|
||||||
}).onError (function (e) {
|
}).onError (function (e) {
|
||||||
|
|
||||||
trace (e);
|
Log.error (e);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -331,7 +331,7 @@ class Preloader #if flash extends Sprite #end {
|
|||||||
|
|
||||||
}).onError (function (e) {
|
}).onError (function (e) {
|
||||||
|
|
||||||
trace (e);
|
Log.error (e);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -419,13 +419,13 @@ class Assets {
|
|||||||
|
|
||||||
} else {
|
} 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 {
|
} 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) {
|
if (manifest == null) {
|
||||||
|
|
||||||
promise.error ("[Assets] Cannot parse asset manifest for library \"" + name + "\"");
|
promise.error ("Cannot parse asset manifest for library \"" + name + "\"");
|
||||||
return;
|
return;
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -496,7 +496,7 @@ class Assets {
|
|||||||
|
|
||||||
if (library == null) {
|
if (library == null) {
|
||||||
|
|
||||||
promise.error ("[Assets] Cannot open library \"" + name + "\"");
|
promise.error ("Cannot open library \"" + name + "\"");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
@@ -508,7 +508,7 @@ class Assets {
|
|||||||
|
|
||||||
}).onError (function (_) {
|
}).onError (function (_) {
|
||||||
|
|
||||||
promise.error ("[Assets] There is no asset library named \"" + name + "\"");
|
promise.error ("There is no asset library named \"" + name + "\"");
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user