mirror of
https://github.com/snachodog/tok-to-insta-follower-bridge.git
synced 2025-04-04 03:01:25 -06:00
fix: handling error
This commit is contained in:
parent
f2f085e844
commit
3afb988578
@ -30,7 +30,7 @@ export class ThreadsService extends AbstractService {
|
||||
if (!isTargetPage) {
|
||||
return [
|
||||
false,
|
||||
"Error: Invalid page. please open the following or followers view.",
|
||||
"Invalid page. please open the following or followers view.",
|
||||
];
|
||||
}
|
||||
return [true, ""];
|
||||
|
@ -181,7 +181,11 @@ function IndexPopup() {
|
||||
name: messageName,
|
||||
});
|
||||
if (hasError) {
|
||||
setErrorMessage(errorMessage, DOCUMENT_LINK.OTHER_ERROR);
|
||||
if (errorMessage.includes("Invalid page")) {
|
||||
setErrorMessage(errorMessage, DOCUMENT_LINK.PAGE_ERROR);
|
||||
} else {
|
||||
setErrorMessage(errorMessage, DOCUMENT_LINK.OTHER_ERROR);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user