git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix #2042, use JSON for parser errors in rebuild
commit56bbac58cc13aab7864cc9b70d8e95727ee28674 authorPhil Freeman <paf31@cantab.net> dateTue 19 Apr 2016, 20:53 (11 years ago) parenta3f940b
1 file changed+1−1
src/Language/PureScript/Ide/Rebuild.hs+1−1
src/Language/PureScript/Ide/Rebuild.hs+1−1
@@ -37,7 +37,7 @@ rebuildFile path = do
3737
3838 m <- case map snd <$> P.parseModulesFromFiles id [(path, input)] of
3939 Left parseError ->
40− throwError . GeneralError $ P.prettyPrintMultipleErrors False parseError
40+ throwError . RebuildError . toJSONErrors False P.Error $ parseError
4141 Right [m] -> pure m
4242 Right _ -> throwError . GeneralError $ "Please define exactly one module."
4343