print error message on console (#4629)

This commit is contained in:
Santy-Wang
2019-06-17 10:01:15 +08:00
committed by Weiliang Wang
parent 688d2afc2d
commit 4c40177134
+2 -2
View File
@@ -274,8 +274,8 @@ export function loadUuid (item, callback) {
}
catch (e) {
cc.deserialize.Details.pool.put(tdInfo);
var err = CC_JSB ? (e + '\n' + e.stack) : e.stack;
return new Error(`Failed to load asset ${item.id}, exception occurs during serialization: ${err}.`);
console.error(e);
return new Error(`Failed to load asset ${item.id}, exception occurs during deserialization: ${CC_JSB ? (e + '\n' + e.stack) : e.stack}.`);
// return new Error(debug.getError(4925, item.id, err));
}