Skip to content

Commit cb82b91

Browse files
committed
refactor: Update VSS parsing error
1 parent b0e27b6 commit cb82b91

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mutiny-core/src/error.rs

+2
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ pub enum MutinyError {
176176
/// Failed to authenticate using JWT
177177
#[error("Failed to authenticate using JWT.")]
178178
JwtAuthFailure,
179+
#[error("Failed to parse VSS value from getObject response.")]
180+
FailedParsingVssValue,
179181
#[error(transparent)]
180182
Other(anyhow::Error),
181183
}

mutiny-core/src/vss.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl MutinyVssClient {
168168
.await
169169
.map_err(|e| {
170170
log_error!(self.logger, "Error parsing get objects response: {e}");
171-
MutinyError::Other(anyhow!("Error parsing get objects response: {e}"))
171+
MutinyError::FailedParsingVssValue
172172
})?;
173173

174174
result.decrypt(&self.encryption_key)

0 commit comments

Comments
 (0)