mirror of
https://github.com/wez/wezterm.git
synced 2024-11-27 02:25:28 +03:00
exec domains: report errors in label function
This commit is contained in:
parent
7f6ae3c82d
commit
48ebbd7991
@ -469,7 +469,16 @@ impl Domain for LocalDomain {
|
||||
Ok(label)
|
||||
})
|
||||
.await;
|
||||
label.unwrap_or_else(|_| self.name.to_string())
|
||||
match label {
|
||||
Ok(label) => label,
|
||||
Err(err) => {
|
||||
log::error!(
|
||||
"Error while calling label function for ExecDomain `{}`: {err:#}",
|
||||
self.name
|
||||
);
|
||||
self.name.to_string()
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => self.name.to_string(),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user