mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Improve message when linkCode not found
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user