Merge pull request #1031 from Chlup/fix_network_test

Fix error handling in BlockDownloaderImpl
This commit is contained in:
Michal Fousek 2023-05-08 14:45:55 +02:00 committed by GitHub
commit ac782bbfa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -139,10 +139,10 @@ actor BlockDownloaderImpl {
isDownloading = false
}
} catch {
lastError = error
if Task.isCancelled {
logger.debug("Blocks downloading canceled.")
} else {
lastError = error
logger.error("Blocks downloading failed: \(error)")
}
isDownloading = false