Skip to content

Commit 9b68df5

Browse files
committed
Add JsonConversionFailure back as it used by hyperlight-js
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent aaa3dc7 commit 9b68df5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/hyperlight_host/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ thiserror = "2.0.12"
4141
tempfile = { version = "3.20", optional = true }
4242
anyhow = "1.0"
4343
metrics = "0.24.2"
44+
serde_json = "1.0"
4445

4546
[target.'cfg(windows)'.dependencies]
4647
windows = { version = "0.61", features = [

src/hyperlight_host/src/error.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ pub enum HyperlightError {
155155
#[cfg(kvm)]
156156
KVMError(#[from] kvm_ioctls::Error),
157157

158+
/// Conversion of str to Json failed
159+
#[error("Conversion of str data to json failed")]
160+
JsonConversionFailure(#[from] serde_json::Error),
161+
158162
/// An attempt to get a lock from a Mutex failed.
159163
#[error("Unable to lock resource")]
160164
LockAttemptFailed(String),

0 commit comments

Comments
 (0)