Skip to content

Commit

Permalink
Restore one error conversion.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnspurlock-skymethod committed Dec 3, 2023
1 parent 43107a9 commit 2c51f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion napi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,5 +223,5 @@ fn convert_error_to_str(err: denokv_proto::ConvertError) -> String {
}
}

fn convert_error_to_anyhow(err: denokv_proto::ConvertError) -> anyhow::Error { err.into() }
fn convert_error_to_anyhow(err: denokv_proto::ConvertError) -> anyhow::Error { anyhow::anyhow!(convert_error_to_str(err)) }
fn convert_sqlite_backend_error_to_anyhow(err: SqliteBackendError) -> anyhow::Error { err.into() }

0 comments on commit 2c51f0e

Please sign in to comment.