Skip to content
Snippets Groups Projects
Verified Commit 8ac4c28d authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

fix: add details to the response

parent 6f5c1521
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment