|
|
@ -77,7 +77,13 @@ impl FromSql for Id {
|
|
|
|
match Uuid::parse_str(s) {
|
|
|
|
match Uuid::parse_str(s) {
|
|
|
|
Ok(id) => return Ok(Self(id)),
|
|
|
|
Ok(id) => return Ok(Self(id)),
|
|
|
|
Err(e) => {
|
|
|
|
Err(e) => {
|
|
|
|
log::error!("{}({}) :: Uuid::parse_str(\"{}\") :: {}", file!(), line!(), s, e);
|
|
|
|
log::error!(
|
|
|
|
|
|
|
|
"{}({}) :: Uuid::parse_str(\"{}\") :: {}",
|
|
|
|
|
|
|
|
file!(),
|
|
|
|
|
|
|
|
line!(),
|
|
|
|
|
|
|
|
s,
|
|
|
|
|
|
|
|
e
|
|
|
|
|
|
|
|
);
|
|
|
|
Err(FromSqlError::Other(Box::from(e)))
|
|
|
|
Err(FromSqlError::Other(Box::from(e)))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|