mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix(backup/creator): Better error message
The previous error message is way too vague, the actual error is caused by UniFile unable to retrieve a path or the path didn't lead to a file. So it's probably safe to assume UniFile failed create an empty backup file (somehow).
This commit is contained in:
parent
775829e28b
commit
61870c1115
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ class BackupCreator(
|
|||
}
|
||||
|
||||
if (file == null || !file.isFile) {
|
||||
throw IllegalStateException("Failed to get handle on file")
|
||||
throw IllegalStateException("Unable to create backup file")
|
||||
}
|
||||
|
||||
val backupManga = mangaBackupCreator(getDatabaseManga(options.readManga), options)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue