Revert "--json-exceptions"
This reverts commit a325524454
.
Turns out this was predicated on an incorrect belief that json output
didn't already sometimes lack the "key" field. Since json output already
can when `giveup` was used, it seems unncessary to add a whole new
option for this.
This commit is contained in:
parent
7c514d717b
commit
91ba0cc7fd
33 changed files with 115 additions and 304 deletions
|
@ -9,7 +9,6 @@ module Types.Messages where
|
|||
|
||||
import qualified Utility.Aeson as Aeson
|
||||
import Utility.Metered
|
||||
import Utility.RawFilePath
|
||||
|
||||
import Control.Concurrent
|
||||
import System.Console.Regions (ConsoleRegion)
|
||||
|
@ -27,7 +26,6 @@ data OutputType
|
|||
data JSONOptions = JSONOptions
|
||||
{ jsonProgress :: Bool
|
||||
, jsonErrorMessages :: Bool
|
||||
, jsonExceptions :: Bool
|
||||
}
|
||||
deriving (Show)
|
||||
|
||||
|
@ -35,7 +33,6 @@ adjustOutputType :: OutputType -> OutputType -> OutputType
|
|||
adjustOutputType (JSONOutput old) (JSONOutput new) = JSONOutput $ JSONOptions
|
||||
{ jsonProgress = jsonProgress old || jsonProgress new
|
||||
, jsonErrorMessages = jsonErrorMessages old || jsonErrorMessages new
|
||||
, jsonExceptions = jsonExceptions old || jsonExceptions new
|
||||
}
|
||||
adjustOutputType _old new = new
|
||||
|
||||
|
@ -73,7 +70,6 @@ newMessageState = do
|
|||
data SerializedOutput
|
||||
= OutputMessage S.ByteString
|
||||
| OutputError String
|
||||
| OutputException String (Maybe RawFilePath) String
|
||||
| BeginProgressMeter
|
||||
| UpdateProgressMeterTotalSize TotalSize
|
||||
| UpdateProgressMeter BytesProcessed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue