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")]
DrmMasterFailed,
/// The `DrmDevice` encountered an access error
#[error("DRM access error: {errmsg} on device `{dev:?}`")]
#[error("DRM access error: {errmsg} on device `{dev:?}` ({source:})")]
Access {
/// Error message associated to the access error
errmsg: &'static str,