Skip to content

Commit

Permalink
Include error in commit failure report
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsgrd committed Feb 22, 2024
1 parent 6fe2f32 commit 22c9d2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitbutler-ui/src/lib/vbranches/branchController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ export class BranchController {
runHooks: runHooks
});
posthog.capture('Commit Successful');
} catch (err) {
} catch (err: any) {
toasts.error('Failed to commit branch');
posthog.capture('Commit Failed');
posthog.capture('Commit Failed', err);
}
}

Expand Down

0 comments on commit 22c9d2e

Please sign in to comment.