From fbe11587a77574dfabacd03b013a486c543cc9c3 Mon Sep 17 00:00:00 2001 From: David Pacheco Date: Fri, 15 Sep 2023 15:12:23 -0700 Subject: [PATCH] print bad output when failing to parse task details --- omdb/src/bin/omdb/nexus.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/omdb/src/bin/omdb/nexus.rs b/omdb/src/bin/omdb/nexus.rs index 07003269fd..0d59b28142 100644 --- a/omdb/src/bin/omdb/nexus.rs +++ b/omdb/src/bin/omdb/nexus.rs @@ -248,8 +248,8 @@ fn print_task_details(bgtask: &BackgroundTask, details: &serde_json::Value) { match serde_json::from_value::(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: {}", @@ -265,8 +265,8 @@ fn print_task_details(bgtask: &BackgroundTask, details: &serde_json::Value) { match serde_json::from_value::(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!( @@ -318,8 +318,8 @@ fn print_task_details(bgtask: &BackgroundTask, details: &serde_json::Value) { match serde_json::from_value::(details.clone()) { Err(error) => eprintln!( - "warning: failed to interpret task details: {:?}", - error + "warning: failed to interpret task details: {:?}: {:?}", + error, details ), Ok(details) => { println!( @@ -403,8 +403,8 @@ fn print_task_details(bgtask: &BackgroundTask, details: &serde_json::Value) { match serde_json::from_value::(details.clone()) { Err(error) => eprintln!( - "warning: failed to interpret task details: {:?}", - error + "warning: failed to interpret task details: {:?}: {:?}", + error, details ), Ok(details) => { println!(