Skip to content

Commit

Permalink
[REST] Print error context for a more meaningful error message when a…
Browse files Browse the repository at this point in the history
… Move call fails (MystenLabs#939)
  • Loading branch information
awelc authored Mar 18, 2022
1 parent 7ab8876 commit 4583ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sui/src/rest_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ async fn call(
let call_params = request.into_inner();
let transaction_response = handle_move_call(call_params, state)
.await
.map_err(|err| custom_http_error(StatusCode::BAD_REQUEST, format!("{err}")))?;
.map_err(|err| custom_http_error(StatusCode::BAD_REQUEST, format!("{:#}", err)))?;
custom_http_response(StatusCode::OK, transaction_response)
}

Expand Down

0 comments on commit 4583ea6

Please sign in to comment.