drm: Make DRM errors print the actual access error

This commit is contained in:
Victor Brekenfeld 2020-04-27 00:42:33 +02:00
parent b9201cd0b5
commit 91b03f1e37
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ pub enum Error {
#[error("Failed to aquire DRM master")] #[error("Failed to aquire DRM master")]
DrmMasterFailed, DrmMasterFailed,
/// The `DrmDevice` encountered an access error /// The `DrmDevice` encountered an access error
#[error("DRM access error: {errmsg} on device `{dev:?}`")] #[error("DRM access error: {errmsg} on device `{dev:?}` ({source:})")]
Access { Access {
/// Error message associated to the access error /// Error message associated to the access error
errmsg: &'static str, errmsg: &'static str,