File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
rascal-lsp/src/main/java/org/rascalmpl/vscode/lsp/rascal Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 5757import org .rascalmpl .interpreter .env .ModuleEnvironment ;
5858import org .rascalmpl .library .Prelude ;
5959import org .rascalmpl .library .util .PathConfig ;
60+ import org .rascalmpl .parser .gtd .exception .ParseError ;
6061import org .rascalmpl .types .RascalTypeFactory ;
6162import org .rascalmpl .uri .URIResolverRegistry ;
6263import org .rascalmpl .uri .URIUtil ;
@@ -197,6 +198,8 @@ IFunction makeParseTreeGetter(Evaluator e) {
197198 return RascalServices .parseRascalModule (resolvedLocation , Prelude .consumeInputStream (reader ).toCharArray ());
198199 } catch (IOException e1 ) {
199200 throw RuntimeExceptionFactory .io ("Could not open " + t [0 ] + " for reading" );
201+ } catch (ParseError pe ) {
202+ throw RuntimeExceptionFactory .parseError (pe .getLocation ());
200203 }
201204 });
202205 }
You can’t perform that action at this time.
0 commit comments