refactor(wayland/surface): better error formatting
This commit is contained in:
@@ -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 => {
|
||||||
|
|||||||
Reference in New Issue
Block a user