Skip to content

Commit 48d8e7b

Browse files
committed
Improve error message
1 parent 8db20a5 commit 48d8e7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsp-test/src/Language/LSP/Test/Decoding.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ decodeFromServerMsg reqMap bytes = unP $ parse p obj
8282
Just m -> Just $ (m, Pair m (Const newMap))
8383
unP (Success (FromServerMess m msg)) = (reqMap, FromServerMess m msg)
8484
unP (Success (FromServerRsp (Pair m (Const newMap)) msg)) = (newMap, FromServerRsp m msg)
85-
unP (Error e) = error e
85+
unP (Error e) = error $ "Error decoding " <> show obj <> " :" <> e
8686
{-
8787
WorkspaceWorkspaceFolders -> error "ReqWorkspaceFolders not supported yet"
8888
WorkspaceConfiguration -> error "ReqWorkspaceConfiguration not supported yet"

0 commit comments

Comments
 (0)