mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-06-16 20:00:39 -04:00
[db] Don't crash when server returns error codes when adding repo
This commit is contained in:
@@ -200,6 +200,10 @@ internal class RepoAdder(
|
||||
log.error(e) { "Error fetching repo." }
|
||||
onError(AddRepoError(INVALID_INDEX, e))
|
||||
return
|
||||
} catch (e: Exception) { // all other exceptions also need to get caught
|
||||
log.error(e) { "Error fetching repo." }
|
||||
onError(AddRepoError(IO_ERROR, e))
|
||||
return
|
||||
}
|
||||
// set final result
|
||||
val finalRepo = receivedRepo
|
||||
|
||||
Reference in New Issue
Block a user