Skip to content

Commit

Permalink
chore: comment before logging exception
Browse files Browse the repository at this point in the history
  • Loading branch information
EresDev committed Dec 9, 2024
1 parent 7feaccb commit 5c302c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/handlers/call-personal-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ export async function callPersonalAgent(context: Context) {
ref: "development",
});
} catch (error) {
logger.error(`Error dispatching workflow:`, { err: error, error: new Error() });

try {
const errComment = ["```diff", `! There was a problem calling the personal agent of ${personalAgentOwner}`, "```"].join("\n");

Expand All @@ -76,6 +74,7 @@ export async function callPersonalAgent(context: Context) {
} catch (err) {
logger.error(`Error commenting:`, { err, error: new Error() });
}
logger.error(`Error dispatching workflow:`, { err: error, error: new Error() });

throw error;
}
Expand Down

0 comments on commit 5c302c6

Please sign in to comment.