ComposerRepository: catch(Exception) too broad in publish loop #39
Labels
No labels
auth
bug
composer
correctness
database
durability
enhancement
feeds
interactions
notifications
performance
reliability
safety
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starsetbyte/peregrine#39
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
ComposerRepository.publish()line 154 catchesExceptionbroadly in the post-publish loop. This swallows non-recoverable errors alongside legitimate network/API failures.Fix
Narrowed to
IOException(network failures) andHttpException(non-2xx API responses).CancellationExceptionis still re-thrown separately. Other unexpected exceptions now propagate naturally rather than being caught and potentially wrapped inPartialPublishException.Added
import retrofit2.HttpException.Fixed in current working tree.