We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10add18 commit b1d27f2Copy full SHA for b1d27f2
src/executor/query.rs
@@ -1,5 +1,5 @@
1
use crate::{error::*, SelectGetableValue, SelectorRaw, Statement};
2
-use std::fmt;
+use std::{error::Error, fmt};
3
4
#[cfg(any(feature = "mock", feature = "proxy"))]
5
use crate::debug_print;
@@ -1362,11 +1362,8 @@ impl TryFromRawValue for uuid::Uuid {
1362
}
1363
1364
fn try_from_string(s: String) -> Result<Self, DbErr> {
1365
- Ok(uuid::Uuid::parse_str(&s).map_err(|e| DbErr::TryIntoErr {
1366
- from: "String",
1367
- into: "uuid::Uuid",
1368
- source: Box::new(e),
1369
- })?)
+ Ok(uuid::Uuid::parse_str(&s)
+ .map_err(|e| DbErr::Type(format!("Failed to parse string to uuid::Uuid: {}", e)))?)
1370
1371
1372
0 commit comments