Skip to content

Commit

Permalink
chore: add logError for js worker call failures (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilee2u authored Feb 20, 2025
1 parent 4878aef commit 7a8ad08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/data/messages/handlers.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { logError } from '@edx/frontend-platform/logging';
import actionToMessageTypesMap from './constants';

function createWorker(url) {
Expand Down Expand Up @@ -26,6 +27,7 @@ export function workerPromiseForEventNames(eventNames, workerUrl) {
resolve();
} else {
reject(e.data.error);
logError('workerPromiseForEventNames failed with the following error:', e.data.error);
}
};
proctoringBackendWorker.addEventListener('message', responseHandler);
Expand Down

0 comments on commit 7a8ad08

Please sign in to comment.