Open
Description
Sample:
_, err := os.ReadFile("/tmp/dat_not_found")
newProblem := iris.NewProblem().Wrap(err)
ctx.StopWithProblem(
iris.StatusInternalError,
iris.NewProblem().
Key("error", true).
Key("success", false).
Title("Request failed").
Detail("Processing did not finish").
Cause(newProblem),
)
Maybe a Wrap thet will be output and one SilentWrap that is only for internal use.
Metadata
Metadata
Assignees
Labels
No labels