fix error notice
This commit is contained in:
parent
dda304c857
commit
fccebb0594
@ -112,7 +112,9 @@ export const setConfigBySuccessfullAuthInplace = async (
|
||||
saveUpdatedConfigFunc: () => Promise<any> | 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;
|
||||
|
||||
@ -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)}`
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -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)}`
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -99,7 +99,9 @@ export const setConfigBySuccessfullAuthInplace = async (
|
||||
saveUpdatedConfigFunc: () => Promise<any> | 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;
|
||||
|
||||
@ -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)}`
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user