We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef6c2de commit 84f1256Copy full SHA for 84f1256
internal/api/handlers/app_start.go
@@ -65,9 +65,10 @@ func HandleAppStart(
65
err = app.ValidateBricks(appLoaded.Descriptor, bricksIndex)
66
if err != nil {
67
sseStream.SendError(render.SSEErrorData{
68
- Code: render.InternalServiceErr,
+ Code: render.BadRequestErr,
69
Message: err.Error(),
70
})
71
+ return
72
}
73
74
type progress struct {
internal/render/sse.go
@@ -30,6 +30,7 @@ type SSEErrCode string
30
31
const (
32
InternalServiceErr SSEErrCode = "INTERNAL_SERVER_ERROR"
33
+ BadRequestErr SSEErrCode = "BAD_REQUEST_ERROR"
34
)
35
36
type SSEErrorData struct {
0 commit comments