From a3c3b81da4939ee292dbb99136822017d1c0464d Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Mon, 9 Sep 2024 17:17:16 +0100 Subject: [PATCH] update: convert to value --- src/defaults.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/defaults.rs b/src/defaults.rs index 72a57605..9e4e5350 100644 --- a/src/defaults.rs +++ b/src/defaults.rs @@ -1,3 +1,5 @@ +use serde_json::Value; + use crate::config::*; use crate::images::cln::{ClnImage, ClnPlugin}; use crate::images::{ @@ -255,9 +257,9 @@ pub fn create_super_user() -> User { { Ok(res) => { if res.status().clone() != 201 { - match res.json::().await { + match res.json::().await { Ok(data) => { - log::error!("{}", data.message) + log::error!("{:?}", data) } Err(err) => { log::error!("Error parsing JSON response: {:?}", err);