Skip to content

Commit

Permalink
Merge pull request #1006 from edx/bseverino/js-logging
Browse files Browse the repository at this point in the history
[MST-1162] Catch all worker errors
  • Loading branch information
bseverino authored Dec 6, 2021
2 parents b3ec26d + 306397a commit 61f8a15
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Change Log
Unreleased
~~~~~~~~~~

[4.7.3] - 2021-12-06
~~~~~~~~~~~~~~~~~~~~
* Catch errors from `onStartExamAttempt` and `onEndExamAttempt`.

[4.7.2] - 2021-11-17
~~~~~~~~~~~~~~~~~~~~
* Add SimpleHistory to proctoring_proctoredexam table
Expand Down
2 changes: 1 addition & 1 deletion edx_proctoring/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"""

# Be sure to update the version number in edx_proctoring/package.json
__version__ = '4.7.2'
__version__ = '4.7.3'

default_app_config = 'edx_proctoring.apps.EdxProctoringConfig' # pylint: disable=invalid-name
4 changes: 2 additions & 2 deletions edx_proctoring/static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ export const handlerWrapper = (Handler) => {
if (handler.onStartExamAttempt) {
handler.onStartExamAttempt()
.then(() => self.postMessage({ type: 'examAttemptStarted' }))
.catch(() => self.postMessage({ type: 'examAttemptStartFailed' }));
.catch(error => self.postMessage({ type: 'examAttemptStartFailed', error }));
}
break;
}
case 'endExamAttempt': {
if (handler.onEndExamAttempt) {
handler.onEndExamAttempt()
.then(() => self.postMessage({ type: 'examAttemptEnded' }))
.catch(() => self.postMessage({ type: 'examAttemptEndFailed' }));
.catch(error => self.postMessage({ type: 'examAttemptEndFailed', error }));
}
break;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@edx/edx-proctoring",
"//": "Note that the version format is slightly different than that of the Python version when using prereleases.",
"version": "4.7.2",
"version": "4.7.3",
"main": "edx_proctoring/static/index.js",
"scripts": {
"test": "gulp test"
Expand Down

0 comments on commit 61f8a15

Please sign in to comment.