Skip to content

Commit 93c3fa2

Browse files
committed
fix incorrect error type and update cargo.lock
1 parent 6caa2e0 commit 93c3fa2

File tree

2 files changed

+106
-23
lines changed

2 files changed

+106
-23
lines changed

Cargo.lock

Lines changed: 105 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/pyth-lazer-agent/src/jrpc_handle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ async fn handle_jrpc_inner<T: AsyncRead + AsyncWrite + Unpin>(
163163
JrpcErrorResponse {
164164
jsonrpc: JsonRpcVersion::V2,
165165
// note: right now specifying an invalid method results in a parse error
166-
error: JrpcError::ParseError(err.to_string()).into(),
166+
error: JrpcError::InternalError.into(),
167167
id: None,
168168
},
169169
))?

0 commit comments

Comments
 (0)