mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 08:23:24 +01:00
Be more resilient with startup lines (#1642)
This commit is contained in:
parent
9ec2aca86f
commit
701711eada
@ -445,7 +445,7 @@ pub async fn run_pipeline_standalone(
|
||||
};
|
||||
|
||||
context.maybe_print_errors(Text::from(line));
|
||||
if error_code != 0 {
|
||||
if error_code != 0 && exit_on_error {
|
||||
std::process::exit(error_code);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user