fix 9c55285bf41e2d2489559f6a3f688cad947801e4

This commit is contained in:
pa
2025-12-30 21:55:42 +09:00
committed by Natsumi
parent 7ad89aaeb9
commit 7e161008ea

View File

@@ -531,10 +531,22 @@ export const useVrcxStore = defineStore('Vrcx', () => {
if (command.startsWith('crash/')) {
const crashMessage = command.replace('crash/', '');
console.error('VRCX recovered from crash:', crashMessage);
const Sentry = await import('@sentry/vue');
Sentry.captureMessage(`crash message: ${crashMessage}`, {
level: 'fatal'
});
if (advancedSettingsStore.sentryErrorReporting) {
try {
import('@sentry/vue').then((Sentry) => {
Sentry.captureMessage(
`crash message: ${crashMessage}`,
{
level: 'fatal'
}
);
});
} catch (error) {
console.error('Error setting up Sentry feedback:', error);
}
}
ElMessage({
message: t('message.crash.vrcx_reload'),
type: 'success'