mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 22:33:50 +02:00
Crash auto recovery
in the worst way possible
This commit is contained in:
@@ -282,7 +282,8 @@
|
||||
},
|
||||
"vrcplus": {
|
||||
"gift": "VRC+ Gift"
|
||||
}
|
||||
},
|
||||
"localNotifs": "System"
|
||||
}
|
||||
},
|
||||
"friend_list": {
|
||||
|
||||
@@ -70,8 +70,12 @@ export async function initSentry(app) {
|
||||
'An error occurred while sending the request'
|
||||
) ||
|
||||
error.message.includes('database or disk is full') ||
|
||||
error.message.includes('disk I/O error') ||
|
||||
error.message.includes(
|
||||
'There is not enough space on the disk.'
|
||||
) ||
|
||||
error.message.includes(
|
||||
'The requested address is not valid in its context.'
|
||||
)
|
||||
) {
|
||||
return null;
|
||||
|
||||
@@ -33,7 +33,10 @@ class SQLiteService {
|
||||
}
|
||||
).catch(() => {});
|
||||
}
|
||||
if (e.message.includes('database is locked')) {
|
||||
if (
|
||||
e.message.includes('database is locked') ||
|
||||
e.message.includes('attempt to write a readonly database')
|
||||
) {
|
||||
ElMessageBox.alert(
|
||||
'Please close other applications that might be using the database file.',
|
||||
'Database is locked',
|
||||
@@ -43,6 +46,16 @@ class SQLiteService {
|
||||
}
|
||||
).catch(() => {});
|
||||
}
|
||||
if (e.message.includes('disk I/O error')) {
|
||||
ElMessageBox.alert(
|
||||
'Please check your disk for errors.',
|
||||
'Disk I/O error',
|
||||
{
|
||||
confirmButtonText: 'OK',
|
||||
type: 'warning'
|
||||
}
|
||||
).catch(() => {});
|
||||
}
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user