mirror of
https://github.com/github/semantic.git
synced 2024-12-28 09:21:35 +03:00
Be consistent with other responses
This commit is contained in:
parent
bc9f85fdef
commit
09e6046763
@ -102,7 +102,7 @@ renderJSONError Blob{..} e = JSON [ SomeJSON (object [ "error" .= err ]) ]
|
||||
|
||||
renderJSONDiffError :: BlobPair -> String -> JSON "diffs" SomeJSON
|
||||
renderJSONDiffError pair e = JSON [ SomeJSON (object [ "error" .= err ]) ]
|
||||
where err = object ["message" .= e, "info" .= toJSON (JSONStat pair)]
|
||||
where err = object ["message" .= e, "stat" .= toJSON (JSONStat pair)]
|
||||
|
||||
data SomeJSON where
|
||||
SomeJSON :: ToJSON a => a -> SomeJSON
|
||||
|
Loading…
Reference in New Issue
Block a user