Skip to content

Commit 86a9b46

Browse files
authored
Add returned error as an internal error when plugin execution errors (#405)
1 parent 19b008e commit 86a9b46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

e2core/server/handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func (s *Server) executePluginByRefHandler(l zerolog.Logger) echo.HandlerFunc {
106106
}
107107

108108
if err := s.dispatcher.Execute(seq); err != nil {
109-
return echo.NewHTTPError(http.StatusInternalServerError, "failed to execute plugin")
109+
return echo.NewHTTPError(http.StatusInternalServerError, "failed to execute plugin").SetInternal(err)
110110
}
111111

112112
// handle any response headers that were set by the Runnables.

0 commit comments

Comments
 (0)