-
Notifications
You must be signed in to change notification settings - Fork 520
Open
Description
Here's the abbreviated error output. In reality, I had to use head
(forgive me for not having the nu
equivalent memorized yet 😆) to capture the start of the error, because it was so long that it filled my terminal's buffer.
> nu make_docs.nu
Error: nu::shell::io::not_found
× Not found
help: '/usr/bin/nu_plugin_inc' does not exist
Error: nu::shell::unsupported_input
x Unsupported input
,-[/home/harper/nushell.github.io/make_docs.nu:446:11]
445 | scope commands
446 | | join (command-names) name
: ^^|^|
: | `-- (List { vals: [Record { val: Record { inner: [("name", String { val: "alias", internal_span: Span { start: 144140, end: 144154 } }),
<It goes on like this for ~forever>
144138, end: 144152 } }], internal_span: Span { start: 144138, end: 144152 } }, Nothing, String String)
· ╰── (PipelineData<table>, table, string, string)
447 │ | sort-by category
╰────
Error: nu::shell::non_zero_exit_code
× External command had a non-zero exit code
╭─[entry #36:1:1]
1 │ nu make_docs.nu
· ─┬
· ╰── exited with code 1
╰────
I see there's code that attempts to print a nice error in this case, but it's clearly not working.
It does behave much better when using the wrapper (though even that doesn't display the error message written in the script):
> source make_docs.nu
> make_docs
Error: nu::shell::io::not_found
x Not found
help: '/usr/bin/nu_plugin_inc' does not exist
Error: nu::shell::non_zero_exit_code
Metadata
Metadata
Assignees
Labels
No labels