Skip to content

Commit

Permalink
Log response error
Browse files Browse the repository at this point in the history
Signed-off-by: lli <[email protected]>
  • Loading branch information
lukewli-anonyome committed Aug 7, 2024
1 parent 9805d79 commit 1b45d6d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ pub(super) async fn ledger_response_to_ddo(

let service_data = match get_data_from_response(resp) {
Ok(data) => data,
Err(_) => serde_json::Value::Null,
Err(e) => {
log::warn!("Failed to get service data: {}", e);
serde_json::Value::Null
}
};

let mut ddo = DidDocument::new(ddo_id.clone());
Expand Down

0 comments on commit 1b45d6d

Please sign in to comment.