mirror of
https://github.com/nushell/nushell.git
synced 2025-01-11 00:38:23 +01:00
fix: deadlock when printing errors (#3140)
Co-authored-by: hk <alexhaka10@protonmail.com>
This commit is contained in:
parent
15e1e6376b
commit
7b8c2c232f
@ -240,7 +240,7 @@ Nu has early support for configuring the shell. You can refer to the book for a
|
||||
To set one of these variables, you can use `config set`. For example:
|
||||
|
||||
```shell
|
||||
> config set edit_mode "vi"
|
||||
> config set line_editor.edit_mode "vi"
|
||||
> config set path $nu.path
|
||||
```
|
||||
|
||||
|
@ -257,9 +257,7 @@ pub async fn run_script_standalone(
|
||||
}
|
||||
|
||||
LineResult::Error(line, err) => {
|
||||
context.with_host(|_host| {
|
||||
print_err(err, &Text::from(line.clone()), &context);
|
||||
});
|
||||
print_err(err, &Text::from(line.clone()), &context);
|
||||
|
||||
maybe_print_errors(&context, Text::from(line));
|
||||
if exit_on_error {
|
||||
|
Loading…
Reference in New Issue
Block a user