Skip to content

Commit

Permalink
Just trying to debug CI failures...
Browse files Browse the repository at this point in the history
Unfortunately, they ONLY happen in CI, but nearly
ALWAYS happen there, so... let's see...
  • Loading branch information
javagl committed Oct 12, 2024
1 parent 7aefae9 commit 4c14656
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Specs/pollToPromise.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ function pollToPromise(f, options) {
try {
result = f();
} catch (e) {
console.error(`Error '${e}' thrown in polled function ${f}`);
console.trace();
reject(e);
return;
}
Expand Down
5 changes: 5 additions & 0 deletions packages/engine/Source/Scene/Scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -4170,6 +4170,11 @@ function tryAndCatchError(scene, functionToExecute) {
try {
functionToExecute(scene);
} catch (error) {
console.error(
`Error '${error}' thrown in delegate function ${functionToExecute}`,
);
console.trace();

scene._renderError.raiseEvent(scene, error);

if (scene.rethrowRenderErrors) {
Expand Down

0 comments on commit 4c14656

Please sign in to comment.