From 72872ba52a8d04af0e0b85c2f5858dcfbee8ba8a Mon Sep 17 00:00:00 2001 From: Drew Ansbacher Date: Thu, 30 Sep 2021 13:04:05 -0600 Subject: [PATCH] error details --- setup-wizard/src/app/services/api/http.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup-wizard/src/app/services/api/http.service.ts b/setup-wizard/src/app/services/api/http.service.ts index 7866832e6..292d7767a 100644 --- a/setup-wizard/src/app/services/api/http.service.ts +++ b/setup-wizard/src/app/services/api/http.service.ts @@ -79,10 +79,10 @@ function RpcError (e: RPCError['error']): void { this.code = code this.message = message - if (typeof data === 'string') { - this.details = e.data - } else { + if (typeof data !== 'string') { this.details = data.details + } else { + this.details = data } }