Skip to content

Commit

Permalink
Add error message
Browse files Browse the repository at this point in the history
  • Loading branch information
SleeplessOne1917 committed Jul 12, 2023
1 parent 7e9c21c commit b0320da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,11 @@ class LemmyBot {
extractedInstance = extractInstanceFromActorId(
community.community.actor_id
);
} catch {}
} catch {
console.log(
`Could not find !${localOptions.name}@${localOptions.instance}`
);
}
return (
(community.community.name === localOptions.name ||
community.community.title === localOptions.name) &&
Expand Down

2 comments on commit b0320da

@Pdzly
Copy link
Contributor

@Pdzly Pdzly commented on b0320da Jul 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong? I would recommend to use "Couldn´t find extract the actor_id! ( Ignore )" As it is just a info not really a error. And it could easily just spam the console with it.

@SleeplessOne1917
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could change the error message. ESLint was shouting at me for having an empty catch block before.

Please sign in to comment.