We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 267de97 commit 3b6bb3cCopy full SHA for 3b6bb3c
1 file changed
src/lib.rs
@@ -65,12 +65,12 @@ impl From<Error> for napi::Error {
65
throw_sqlite_error(msg.clone(), code, *raw_code)
66
}
67
68
- _ => {
+ other => {
69
let err_json = serde_json::json!({
70
- "message": msg.clone(),
+ "message": other.to_string(),
71
"libsqlError": true,
72
- "code": code,
73
- "rawCode": *raw_code
+ "code": "SQLITE_ERROR",
+ "rawCode": 1
74
});
75
napi::Error::from_reason(err_json.to_string())
76
0 commit comments