Skip to content

Commit

Permalink
Sentry.capture, throw and log both.
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes-mk committed Feb 27, 2025
1 parent 84df86e commit 668be81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/src/components/ThrowUnconditionally.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
<script lang="ts" setup>
import * as Sentry from '@sentry/vue'
console.log('Capturing a sentry error unconditionally ')
Sentry.captureException('Error thrown unconditionally')
console.log('Throwing an error unconditionally ')
throw new Error('Error thrown unconditionally')
</script>

<template>This page throws a sentry error.</template>

0 comments on commit 668be81

Please sign in to comment.