Skip to content

Commit 12d6b8d

Browse files
committed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func FromWorkflow[Input any, Output any](f func(polycode.WorkflowContext, Input)
2828
err = polycode.GetValidator().Validate(input)
2929
if err != nil {
3030
c.JSON(http.StatusBadRequest, gin.H{
31-
"error": "Invalid request",
31+
"error": err.Error(),
3232
})
3333
return
3434
}

0 commit comments

Comments
 (0)