We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 221fe19 + 669ea8c commit b537adeCopy full SHA for b537ade
js/rpg_managers/SceneManager.js
@@ -156,12 +156,14 @@ SceneManager.terminate = function() {
156
157
SceneManager.onError = function(e) {
158
console.error(e.message);
159
- console.error(e.filename, e.lineno);
160
- try {
161
- this.stop();
162
- Graphics.printError('Error', e.message);
163
- AudioManager.stopAll();
164
- } catch (e2) {
+ if (e.filename || e.lineno) {
+ console.error(e.filename, e.lineno);
+ try {
+ this.stop();
+ Graphics.printError('Error', e.message);
+ AudioManager.stopAll();
165
+ } catch (e2) {
166
+ }
167
}
168
};
169
0 commit comments