mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
Revert "Fail instead of die"
This reverts commit d55ba538acbd7683128edb3ebce3c7255d38ae12.
This commit is contained in:
parent
22b8b7cac2
commit
4f674ed622
@ -56,7 +56,7 @@ readFromHandle h = do
|
||||
input <- liftIO $ BL.hGetContents h
|
||||
case decode input of
|
||||
Just d -> pure d
|
||||
Nothing -> liftIO $ fail ("invalid input on " <> show h <> ", expecting JSON")
|
||||
Nothing -> liftIO $ die ("invalid input on " <> show h <> ", expecting JSON")
|
||||
|
||||
toBlob :: Blob -> Blob.Blob
|
||||
toBlob Blob{..} = Blob.sourceBlob path language' (fromText content)
|
||||
|
Loading…
Reference in New Issue
Block a user