aboutsummaryrefslogtreecommitdiff
path: root/src/services/errors
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-07-31 12:36:02 +0300
committerHenry Jameson <me@hjkos.com>2022-07-31 12:36:02 +0300
commitfc18673030513fa663289d051bb0733a97b8e053 (patch)
tree97114e0544414689c08fc04f50bcfbb22689e725 /src/services/errors
parentfddb531ed20b31c44e6911418e7bbb884836c40a (diff)
deal with no-prototype-builtins
Diffstat (limited to 'src/services/errors')
-rw-r--r--src/services/errors/errors.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/services/errors/errors.js b/src/services/errors/errors.js
index d4cf9132..50372e5e 100644
--- a/src/services/errors/errors.js
+++ b/src/services/errors/errors.js
@@ -26,6 +26,7 @@ export class RegistrationError extends Error {
// the error is probably a JSON object with a single key, "errors", whose value is another JSON object containing the real errors
if (typeof error === 'string') {
error = JSON.parse(error)
+ // eslint-disable-next-line
if (error.hasOwnProperty('error')) {
error = JSON.parse(error.error)
}