We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0101dd commit a503868Copy full SHA for a503868
1 file changed
src/run.rs
@@ -242,13 +242,17 @@ pub(crate) fn run_repl(
242
working_set.add_file(name.clone(), content);
243
let end = working_set.next_span_start();
244
245
- let (block, module, comments, _) = parse_module_block(
+ let (block, module, comments, parse_error) = parse_module_block(
246
&mut working_set,
247
Span::new(start, end),
248
name.as_bytes(),
249
&[],
250
);
251
252
+ if let Some(err) = parse_error {
253
+ report_error(&working_set, &err);
254
+ }
255
+
256
// TODO: change this when #8505 is merged
257
// NOTE: remove the assert and uncomment the `help`s
258
let prelude = vec![
0 commit comments