From e43c07b30a088dd5984c111b98f635dc3beb0699 Mon Sep 17 00:00:00 2001 From: Adam French Date: Wed, 4 Mar 2026 16:10:52 +0000 Subject: [PATCH] more verbose error response --- backend/handlers/handle_rowing.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/backend/handlers/handle_rowing.go b/backend/handlers/handle_rowing.go index fbb84e2..448a86f 100644 --- a/backend/handlers/handle_rowing.go +++ b/backend/handlers/handle_rowing.go @@ -113,12 +113,18 @@ No text, no markdown, no explanation. Just the JSON object.`), }) if err != nil { - ctx.JSON(http.StatusInternalServerError, gin.H{"error": "failed to analyze image"}) + ctx.JSON(http.StatusInternalServerError, gin.H{ + "raw": message.Content[0].Text, + "error": err.Error(), + }) return } if len(message.Content) == 0 { - ctx.JSON(http.StatusInternalServerError, gin.H{"error": "empty response from Claude"}) + ctx.JSON(http.StatusInternalServerError, gin.H{ + "raw": message.Content[0].Text, + "error": "empty response from Claude", + }) return }