mirror of
https://github.com/nushell/nushell.git
synced 2025-01-28 09:08:59 +01:00
Fix the failure if the prompt breaks (#426)
This commit is contained in:
parent
8cf4402e6c
commit
eed22605ef
@ -406,9 +406,8 @@ fn update_prompt<'prompt>(
|
||||
let config = stack.get_config().unwrap_or_default();
|
||||
pipeline_data.collect_string("", &config)
|
||||
}
|
||||
Err(err) => {
|
||||
let working_set = StateWorkingSet::new(engine_state);
|
||||
report_error(&working_set, &err);
|
||||
Err(..) => {
|
||||
// If we can't run the custom prompt, give them the default
|
||||
return default_prompt as &dyn Prompt;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user