Skip to content

Commit

Permalink
print bad output when failing to parse task details
Browse files Browse the repository at this point in the history
  • Loading branch information
davepacheco committed Sep 15, 2023
1 parent 53c1f0a commit fbe1158
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions omdb/src/bin/omdb/nexus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ fn print_task_details(bgtask: &BackgroundTask, details: &serde_json::Value) {

match serde_json::from_value::<DnsConfigSuccess>(details.clone()) {
Err(error) => eprintln!(
"warning: failed to interpret task details: {:?}",
error
"warning: failed to interpret task details: {:?}: {:?}",
error, details
),
Ok(found_dns_config) => println!(
" last generation found: {}",
Expand All @@ -265,8 +265,8 @@ fn print_task_details(bgtask: &BackgroundTask, details: &serde_json::Value) {

match serde_json::from_value::<DnsServersSuccess>(details.clone()) {
Err(error) => eprintln!(
"warning: failed to interpret task details: {:?}",
error
"warning: failed to interpret task details: {:?}: {:?}",
error, details
),
Ok(found_dns_servers) => {
println!(
Expand Down Expand Up @@ -318,8 +318,8 @@ fn print_task_details(bgtask: &BackgroundTask, details: &serde_json::Value) {

match serde_json::from_value::<DnsPropSuccess>(details.clone()) {
Err(error) => eprintln!(
"warning: failed to interpret task details: {:?}",
error
"warning: failed to interpret task details: {:?}: {:?}",
error, details
),
Ok(details) => {
println!(
Expand Down Expand Up @@ -403,8 +403,8 @@ fn print_task_details(bgtask: &BackgroundTask, details: &serde_json::Value) {

match serde_json::from_value::<EndpointsFound>(details.clone()) {
Err(error) => eprintln!(
"warning: failed to interpret task details: {:?}",
error
"warning: failed to interpret task details: {:?}: {:?}",
error, details
),
Ok(details) => {
println!(
Expand Down

0 comments on commit fbe1158

Please sign in to comment.