Skip to content

Commit 8796fae

Browse files
authored
Making the parser error explicit (#2121)
If a user typed the error as it was originally it wouldn't trigger the expected parsing error. With this modification now the error message, appears as it is expected in the document.
1 parent 98d5e64 commit 8796fae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

book/thinking_in_nu.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ The following examples use the [`source` command](/commands/docs/source.md), but
270270
Consider this scenario:
271271

272272
```nu
273-
"print Hello" | save output.nu
274-
source output.nu
273+
("print Hello" | save output.nu;
274+
source output.nu)
275275
# => Error: nu::parser::sourced_file_not_found
276276
# =>
277277
# => × File not found

0 commit comments

Comments
 (0)