From 4f1075b2b268935cd653ec843ca8f50922a52420 Mon Sep 17 00:00:00 2001 From: Sergio <77530549+sergi0g@users.noreply.github.com> Date: Fri, 20 Dec 2024 17:00:41 +0200 Subject: [PATCH] Add error message to API response --- src/structs/image.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/structs/image.rs b/src/structs/image.rs index e1b0a1b..294bc22 100644 --- a/src/structs/image.rs +++ b/src/structs/image.rs @@ -171,8 +171,10 @@ impl Image { } }, _ => unreachable!() - }) - }}, + }), + }, + error: self.error.clone() + }, time: self.time_ms } }