Skip to content

Commit 5f14f26

Browse files
authored
Include OSStatus when formatting the Unknown error (#134)
1 parent 93287e2 commit 5f14f26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ impl ::std::fmt::Display for Error {
328328
Error::AudioCodec(ref err) => write!(f, "{}", err),
329329
Error::AudioFormat(ref err) => write!(f, "{}", err),
330330
Error::AudioUnit(ref err) => write!(f, "{}", err),
331-
Error::Unknown(_) => write!(f, "An unknown error unknown to the coreaudio-rs API occurred"),
331+
Error::Unknown(os_status) => write!(f, "An error unknown to the coreaudio-rs API occurred, OSStatus: {}", os_status),
332332
}
333333
}
334334
}

0 commit comments

Comments
 (0)