refactor(wayland/surface): better error formatting

This commit is contained in:
Nova
2025-09-11 16:02:39 -07:00
parent 209171abfc
commit c5246c9dc8

View File

@@ -142,9 +142,10 @@ impl Surface {
"Surface has an incomparible role".to_string(), "Surface has an incomparible role".to_string(),
) )
.await?; .await?;
Err(server::Error::Custom( Err(server::Error::Custom(format!(
"Surface has an incompatible role".to_string(), "Surface {} has role {current_role:?} but tried to set to {role:?}",
)) self.id
)))
} }
} }
None => { None => {