Skip to content

Commit

Permalink
don't show "operation aborted" warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nvms committed Aug 19, 2023
1 parent 91cffe6 commit bfd1b5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/templates/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ export const commandHandler = async (template: Command) => {

await send(userMessage, systemMessage, template);
} catch (error) {
// The request can be intentionally closed by clicking the "abort" button.
// We don't need to surface this error to the user, because they already know that it happened.
if (String(error).includes("The operation was aborted")) return;

displayWarning(String(error));
}
};

0 comments on commit bfd1b5f

Please sign in to comment.