This repository was archived by the owner on Oct 7, 2020. It is now read-only.
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ run scheduler _origDir plugins captureFp = flip E.catches handlers $ do
158
158
159
159
-- Check for mismatching GHC versions
160
160
let dummyCradleFile = fromMaybe currentDir lspRootDir </> " File.hs"
161
- logm $ " Dummy Cradle file result: " ++ dummyCradleFile
161
+ debugm $ " Dummy Cradle file result: " ++ dummyCradleFile
162
162
cradleRes <- liftIO $ E. try (findLocalCradle dummyCradleFile)
163
163
let sf = Core. sendFunc lf
164
164
@@ -180,9 +180,9 @@ run scheduler _origDir plugins captureFp = flip E.catches handlers $ do
180
180
sf $ NotShowMessage $ fmServerShowMessageNotification J. MtWarning cabalMsg
181
181
sf $ NotLogMessage $ fmServerLogMessageNotification J. MtWarning cabalMsg
182
182
183
- Left (_ :: Yaml. ParseException ) -> do
184
- logm " Failed to parse it "
185
- sf $ NotShowMessage $ fmServerShowMessageNotification J. MtError " Couldn't parse hie.yaml"
183
+ Left (e :: Yaml. ParseException ) -> do
184
+ logm $ " Failed to parse `hie.yaml`: " ++ show e
185
+ sf $ NotShowMessage $ fmServerShowMessageNotification J. MtError ( " Couldn't parse hie.yaml: \n " <> T. pack ( show e))
186
186
187
187
let mcradle = case cradleRes of
188
188
Left _ -> Nothing
You can’t perform that action at this time.
0 commit comments