Compare commits

...

2 Commits

Author SHA1 Message Date
ac416f7b69 v0.0.232 2023-08-08 18:01:00 +02:00
e10140e143 v0.0.231 2023-08-08 16:10:31 +02:00
3 changed files with 8 additions and 3 deletions

View File

@@ -80,6 +80,10 @@ func New(t ErrorType, msg string) *Builder {
}
func Wrap(err error, msg string) *Builder {
if err == nil {
return &Builder{errorData: newExErr(CatSystem, TypeInternal, msg)} // prevent NPE if we call Wrap with err==nil
}
if !pkgconfig.RecursiveErrors {
v := FromError(err)
v.Message = msg

View File

@@ -149,11 +149,12 @@ func (w *GinWrapper) NoRoute(handler WHandlerFunc) {
if w.bufferBody {
handlers = append(handlers, BodyBuffer)
}
handlers = append(handlers, Wrap(w, handler))
middlewareNames := langext.ArrMap(handlers, func(v gin.HandlerFunc) string { return nameOfFunction(v) })
handlerName := nameOfFunction(handler)
handlers = append(handlers, Wrap(w, handler))
w.engine.NoRoute(handlers...)
w.routeSpecs = append(w.routeSpecs, ginRouteSpec{

View File

@@ -1,5 +1,5 @@
package goext
const GoextVersion = "0.0.230"
const GoextVersion = "0.0.232"
const GoextVersionTimestamp = "2023-08-08T16:09:02+0200"
const GoextVersionTimestamp = "2023-08-08T18:01:00+0200"