mirror of
https://github.com/Dummi26/mers.git
synced 2025-12-19 13:36:32 +01:00
improve panic function, add stacktrace
This commit is contained in:
@@ -395,6 +395,11 @@ impl From<String> for CheckError {
|
||||
Self::new().msg(value)
|
||||
}
|
||||
}
|
||||
impl From<&str> for CheckError {
|
||||
fn from(value: &str) -> Self {
|
||||
Self::new().msg(value.to_owned())
|
||||
}
|
||||
}
|
||||
impl Debug for CheckError {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "{self}")
|
||||
|
||||
Reference in New Issue
Block a user