从语文上优化扩展加载错误的显示
This commit is contained in:
parent
be591207ec
commit
4d8bccaf7a
|
@ -1888,7 +1888,7 @@ export class Game extends Uninstantable {
|
|||
delete _status.extension;
|
||||
}
|
||||
}catch(e1){
|
||||
alert(`扩展${name}载入失败\nprecontentError\n${decodeURI(e1.stack)}`);
|
||||
alert(`加载《${name}》扩展的precontent时出错。\n${decodeURI(e1.stack)}`);
|
||||
}
|
||||
|
||||
if (content) lib.extensions.push([name, content, config, _status.evaluatingExtension, objectPackage || {}]);
|
||||
|
|
|
@ -590,7 +590,7 @@ export async function onload(resetGameTimeout) {
|
|||
try{
|
||||
await (gnc.is.coroutine(lib.extensions[i][1]) ? gnc.of(lib.extensions[i][1]) : lib.extensions[i][1]).call(lib.extensions[i], lib.extensions[i][2], lib.extensions[i][4]);
|
||||
}catch(e){
|
||||
alert(`扩展${lib.extensions[i][0]}载入失败\ncontentError\n${decodeURI(e.stack)}`);
|
||||
alert(`加载《${name}》扩展的content时出错。\n${decodeURI(e.stack)}`);
|
||||
}
|
||||
if (lib.extensions[i][4]) {
|
||||
if (lib.extensions[i][4].character) {
|
||||
|
|
Loading…
Reference in New Issue