audit all uses of SomeException to avoid catching async exceptions
Except for the assistant, which I think may use them between threads? Most of the uses of SomeException were already catching only async exceptions. But I did find a few places that were accidentially catching them.
This commit is contained in:
parent
dca19099a9
commit
319f2a4afc
4 changed files with 4 additions and 7 deletions
|
@ -208,7 +208,7 @@ coreBare = "core.bare"
|
|||
- and returns a repo populated with the configuration, as well as the raw
|
||||
- output and any standard output of the command. -}
|
||||
fromPipe :: Repo -> String -> [CommandParam] -> ConfigStyle -> IO (Either SomeException (Repo, S.ByteString, S.ByteString))
|
||||
fromPipe r cmd params st = try $ withCreateProcess p go
|
||||
fromPipe r cmd params st = tryNonAsync $ withCreateProcess p go
|
||||
where
|
||||
p = (proc cmd $ toCommand params)
|
||||
{ std_out = CreatePipe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue