From 076128e30c4fce66f0df1fbb04bab245890883c8 Mon Sep 17 00:00:00 2001 From: simojenki Date: Sat, 31 Jul 2021 15:56:51 +1000 Subject: [PATCH] Improve message when linkCode not found --- src/smapi.ts | 2 +- tests/smapi.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/smapi.ts b/src/smapi.ts index ec73809..7c6297f 100644 --- a/src/smapi.ts +++ b/src/smapi.ts @@ -183,7 +183,7 @@ class SonosSoap { throw { Fault: { faultcode: "Client.NOT_LINKED_RETRY", - faultstring: "Link Code not found retry...", + faultstring: "Link Code not found yet, sonos app will keep polling until you log in to bonob", detail: { ExceptionInfo: "NOT_LINKED_RETRY", SonosError: "5", diff --git a/tests/smapi.test.ts b/tests/smapi.test.ts index 984fe80..b2318b5 100644 --- a/tests/smapi.test.ts +++ b/tests/smapi.test.ts @@ -509,7 +509,7 @@ describe("api", () => { .catch((e: any) => { expect(e.root.Envelope.Body.Fault).toEqual({ faultcode: "Client.NOT_LINKED_RETRY", - faultstring: "Link Code not found retry...", + faultstring: "Link Code not found yet, sonos app will keep polling until you log in to bonob", detail: { ExceptionInfo: "NOT_LINKED_RETRY", SonosError: "5",