mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-20 07:13:51 +02:00
Crash auto recovery
in the worst way possible
This commit is contained in:
@@ -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