From 6ea7ca8008227717fab624bfd6aa2faf6b404eeb Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Fri, 17 Nov 2023 19:20:50 +0800 Subject: [PATCH] style: add tip for tailchat sdk client --- .../packages/tailchat-client-sdk/src/openapi/client/base.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/packages/tailchat-client-sdk/src/openapi/client/base.ts b/client/packages/tailchat-client-sdk/src/openapi/client/base.ts index ada652be07b..8f79e5e9d25 100644 --- a/client/packages/tailchat-client-sdk/src/openapi/client/base.ts +++ b/client/packages/tailchat-client-sdk/src/openapi/client/base.ts @@ -54,7 +54,11 @@ export class TailchatBaseClient { // this.whoami().then(console.log); } catch (err) { console.error(err); - throw new Error('Login failed, please check application credentials'); + throw new Error( + `Login failed, please check application credentials or network(Error: ${String( + err + )})` + ); } }