Skip to content

A couple spots async exceptions aren't handled gracefully #187

Open
@mgsloan

Description

@mgsloan

Based on commercialhaskell/stack#3073 , I suspected hackage-security wasn't handling async exceptions quite right. Indeed, a search for SomeException led me to find the following spots where SomeException gets caught and not rethrown:

Relevant to the linked issue:

catchChecked (select m callback) $ \ex -> do

Part of hackage-repo-tool:

handle (throwIO . TarGzError (prettyTargetPath' opts pathTarGz)) $ do

I also noticed that the UpdateFailed exception constructor is never used -

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions