mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 22:36:05 +02:00
improve ux on crash recovery
This commit is contained in:
+8
-4
@@ -531,10 +531,14 @@ export const useVrcxStore = defineStore('Vrcx', () => {
|
||||
if (command.startsWith('crash/')) {
|
||||
const crashMessage = command.replace('crash/', '');
|
||||
console.error('VRCX recovered from crash:', crashMessage);
|
||||
ElMessageBox.alert(
|
||||
crashMessage,
|
||||
t('message.crash.vrcx_crash')
|
||||
).catch(() => {});
|
||||
const Sentry = await import('@sentry/vue');
|
||||
Sentry.captureMessage(`crash message: ${crashMessage}`, {
|
||||
level: 'fatal'
|
||||
});
|
||||
ElMessage({
|
||||
message: t('message.crash.vrcx_reload'),
|
||||
type: 'success'
|
||||
});
|
||||
return;
|
||||
}
|
||||
eventLaunchCommand(command);
|
||||
|
||||
Reference in New Issue
Block a user