exec domains: report errors in label function

This commit is contained in:
Wez Furlong committed 2022-07-09 12:44:16 -07:00
1 parent 7f6ae3c82d
commit 48ebbd7991
1 file changed
+10 -1
+10 -1
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(),
}