mirror of
https://github.com/wez/wezterm.git
synced 2024-11-23 23:21:08 +03:00
fix toml parse error reporting
The move to anyhow changed the nature of the error objects that get passed through to the notification system; since we use the `context` method and used the normal display presentation (via `to_string`) we were only reporting the context and not the nature of the error. Switching to alternate output makes the error messages more useful by including the underlying problem and line number. Refs: https://github.com/wez/wezterm/issues/78
This commit is contained in:
parent
8950c6cc24
commit
26ac488c20
@ -153,8 +153,8 @@ impl ConfigInner {
|
||||
}
|
||||
}
|
||||
Err(err) => {
|
||||
let err = err.to_string().to_string();
|
||||
log::error!("While reloading configuration: {}", err);
|
||||
let err = format!("{:#}", err);
|
||||
log::error!("While (re)loading configuration: {}", err);
|
||||
|
||||
#[cfg(not(windows))]
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user