Skip to content

Commit f438477

Browse files
committed
review comments
1 parent eed0172 commit f438477

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/nuxt/src/runtime/plugins/sentry.client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,15 @@ export default defineNuxtPlugin({
5151
if (clientOptions && 'trackPinia' in clientOptions && clientOptions.trackPinia) {
5252
if ('$pinia' in nuxtApp) {
5353
(nuxtApp.$pinia as { use: (plugin: unknown) => void }).use(
54+
// `trackPinia` is an object with custom options or `true` (pass `undefined` to use default options)
5455
createSentryPiniaPlugin(clientOptions.trackPinia === true ? undefined : clientOptions.trackPinia),
5556
);
5657
} else {
5758
clientOptions.debug &&
5859
consoleSandbox(() => {
5960
// eslint-disable-next-line no-console
6061
console.warn(
61-
'[Sentry] You set `trackPinia`, but the Pinia was not found. Make sure to add `"@pinia/nuxt"` to your modules array.',
62+
'[Sentry] You set `trackPinia`, but the Pinia module was not found. Make sure to add `"@pinia/nuxt"` to your modules array.',
6263
);
6364
});
6465
}

0 commit comments

Comments
 (0)