Skip to content

Commit

Permalink
fix: do not repeat error code in query call reject message
Browse files Browse the repository at this point in the history
  • Loading branch information
mraszyk committed Jan 16, 2025
1 parent 85af5fc commit d2add7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rs/http_endpoints/public/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ pub(crate) async fn query(
Err(user_error) => HttpQueryResponse::Rejected {
error_code: user_error.code().to_string(),
reject_code: user_error.reject_code() as u64,
reject_message: user_error.to_string(),
reject_message: user_error.description().to_string(),
},
};

Expand Down

0 comments on commit d2add7f

Please sign in to comment.