diff --git a/pro/src/account.ts b/pro/src/account.ts index 876f9e3..b4d2a42 100644 --- a/pro/src/account.ts +++ b/pro/src/account.ts @@ -112,7 +112,9 @@ export const setConfigBySuccessfullAuthInplace = async ( saveUpdatedConfigFunc: () => Promise | undefined ) => { if (authRes.error !== undefined) { - throw Error(`you should not save the setting for ${authRes.error}`); + throw Error( + `remotely save account auth failed, please auth again: ${authRes.error}` + ); } config.accessToken = authRes.access_token; diff --git a/pro/src/fsBox.ts b/pro/src/fsBox.ts index 3a27f90..1008348 100644 --- a/pro/src/fsBox.ts +++ b/pro/src/fsBox.ts @@ -112,7 +112,7 @@ export const setConfigBySuccessfullAuthInplace = async ( ) => { if (authRes.access_token === undefined || authRes.access_token === "") { throw Error( - `you should not save the setting for ${JSON.stringify(authRes)}` + `remotely save account auth failed, please auth again: ${JSON.stringify(authRes)}` ); } diff --git a/pro/src/fsKoofr.ts b/pro/src/fsKoofr.ts index dec6889..8ae35c3 100644 --- a/pro/src/fsKoofr.ts +++ b/pro/src/fsKoofr.ts @@ -140,7 +140,7 @@ export const setConfigBySuccessfullAuthInplace = async ( ) => { if (authRes.access_token === undefined || authRes.access_token === "") { throw Error( - `you should not save the setting for ${JSON.stringify(authRes)}` + `remotely save account auth failed, please auth again: ${JSON.stringify(authRes)}` ); } diff --git a/pro/src/fsPCloud.ts b/pro/src/fsPCloud.ts index b3eda2b..ec3168b 100644 --- a/pro/src/fsPCloud.ts +++ b/pro/src/fsPCloud.ts @@ -99,7 +99,9 @@ export const setConfigBySuccessfullAuthInplace = async ( saveUpdatedConfigFunc: () => Promise | undefined ) => { if (authRes === undefined) { - throw Error(`you should not save the setting for undefined result`); + throw Error( + `remotely save account auth failed, please auth again: undefined result` + ); } config.accessToken = authRes.access_token; diff --git a/pro/src/fsYandexDisk.ts b/pro/src/fsYandexDisk.ts index 889fb94..149d5f0 100644 --- a/pro/src/fsYandexDisk.ts +++ b/pro/src/fsYandexDisk.ts @@ -127,7 +127,7 @@ export const setConfigBySuccessfullAuthInplace = async ( ) => { if (authRes.access_token === undefined || authRes.access_token === "") { throw Error( - `you should not save the setting for ${JSON.stringify(authRes)}` + `remotely save account auth failed, please auth again: ${JSON.stringify(authRes)}` ); }