Skip to content

Commit 3b6bb3c

Browse files
committed
more hacks
1 parent 267de97 commit 3b6bb3c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ impl From<Error> for napi::Error {
6565
throw_sqlite_error(msg.clone(), code, *raw_code)
6666
}
6767
}
68-
_ => {
68+
other => {
6969
let err_json = serde_json::json!({
70-
"message": msg.clone(),
70+
"message": other.to_string(),
7171
"libsqlError": true,
72-
"code": code,
73-
"rawCode": *raw_code
72+
"code": "SQLITE_ERROR",
73+
"rawCode": 1
7474
});
7575
napi::Error::from_reason(err_json.to_string())
7676
}

0 commit comments

Comments
 (0)