From 7e29ebbadbf6246a664a2bf45b3798b3ecd87955 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Sat, 4 Nov 2023 12:58:50 -0500 Subject: Fix other error logs while I'm at it --- src/state/models/ui/create-account.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/state/models/ui/create-account.ts') diff --git a/src/state/models/ui/create-account.ts b/src/state/models/ui/create-account.ts index 9f11a9b31..3bd39ba76 100644 --- a/src/state/models/ui/create-account.ts +++ b/src/state/models/ui/create-account.ts @@ -78,7 +78,7 @@ export class CreateAccountModel { } catch (err: any) { this.rootStore.log.warn( `Failed to fetch service description for ${this.serviceUrl}`, - err, + {error: err}, ) this.setError( 'Unable to contact your service. Please check your Internet connection.', @@ -127,7 +127,7 @@ export class CreateAccountModel { errMsg = 'Invite code not accepted. Check that you input it correctly and try again.' } - this.rootStore.log.error('Failed to create account', e) + this.rootStore.log.error('Failed to create account', {error: e}) this.setIsProcessing(false) this.setError(cleanError(errMsg)) throw e -- cgit 1.4.1