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:
Ahmad Ansori Palembani 2024-09-20 07:22:52 +07:00
parent 775829e28b
commit 61870c1115
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -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)