Skip to content

Commit

Permalink
chore: add todo comment for AUTH_KEY_DUPLICATED handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Oct 26, 2024
1 parent c45422e commit 50b28a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/workflow-entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,11 @@ run()
.catch((err) => {
logger.error("Error running workflow: ", { err });
core.setFailed(err);

if ("errorMessage" in err && err.errorMessage === "AUTH_KEY_DUPLICATED") {
// could try using the Bot API to send a message to the admins of the bot here
// TODO: find an elegant way to handle this either by resetting the session or some other way
}

process.exit(0);
});

0 comments on commit 50b28a6

Please sign in to comment.