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 }