1
1
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:
Wez Furlong 2022-07-09 12:44:16 -07:00
parent 7f6ae3c82d
commit 48ebbd7991

View File

@ -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(),
}