Improve message when linkCode not found

This commit is contained in:
simojenki
2021-07-31 15:56:51 +10:00
parent f036b39524
commit 076128e30c
2 changed files with 2 additions and 2 deletions

View File

@@ -183,7 +183,7 @@ class SonosSoap {
throw { throw {
Fault: { Fault: {
faultcode: "Client.NOT_LINKED_RETRY", 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: { detail: {
ExceptionInfo: "NOT_LINKED_RETRY", ExceptionInfo: "NOT_LINKED_RETRY",
SonosError: "5", SonosError: "5",

View File

@@ -509,7 +509,7 @@ describe("api", () => {
.catch((e: any) => { .catch((e: any) => {
expect(e.root.Envelope.Body.Fault).toEqual({ expect(e.root.Envelope.Body.Fault).toEqual({
faultcode: "Client.NOT_LINKED_RETRY", 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: { detail: {
ExceptionInfo: "NOT_LINKED_RETRY", ExceptionInfo: "NOT_LINKED_RETRY",
SonosError: "5", SonosError: "5",