diff --git a/CHANGELOG.md b/CHANGELOG.md index d8fd43ae..5a7b9e68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,7 +21,7 @@ X.Y.Z-rc Release notes * Upgrading to Realm Core 4.0.0 and Realm Sync 2.0.0-rc25. ### Enhancements -** Support Realm migration from sync 1.0 to sync 2.0 version +* None ### Bug fixes * Configuration of sync file system is not done on module import but later when actually needed by sync (#1351) diff --git a/lib/browser/rpc.js b/lib/browser/rpc.js index bd0d6eed..37c219f1 100644 --- a/lib/browser/rpc.js +++ b/lib/browser/rpc.js @@ -246,14 +246,14 @@ function sendRequest(command, data, host = sessionHost) { if (error && error.replace) { error = error.replace(/^[a-z]+: /i, ''); } - else if (error.type && error.type == 'dict') { + else if (error.type && error.type === 'dict') { const responseError = deserialize_json_value(error); let responeMessage; if (response.message && response.message !== '') { // Remove the type prefix from the error message (e.g. "Error: "). responeMessage = response.message.replace(/^[a-z]+: /i, ''); } - + const exceptionToReport = new Error(responeMessage); Object.assign(exceptionToReport, responseError); throw exceptionToReport;