From 8ac4c28da5468c1da0a9aa58f251d4164c05ef8d Mon Sep 17 00:00:00 2001
From: Ernesto Rico Schmidt <ernesto@helsinki.at>
Date: Fri, 21 Feb 2025 15:29:23 -0400
Subject: [PATCH] fix: add details to the response

---
 api/v1/utils.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/api/v1/utils.go b/api/v1/utils.go
index 1f76749..a8ab529 100644
--- a/api/v1/utils.go
+++ b/api/v1/utils.go
@@ -40,6 +40,7 @@ func statusCodeFromError(err error) (code int, response ErrorResponse) {
 	case *importer.JobSourceResult:
 		response.Detail = err.(*importer.JobSourceResult).Log
 	default:
+		response.Detail = err.Error()
 		switch err {
 		case ErrNotFlowJSUpload:
 			code = http.StatusConflict
-- 
GitLab