You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-08-08 22:36:41 +02:00
update docker-compose
This commit is contained in:
@ -79,6 +79,7 @@ func (a *App) Handle(verb, path string, handler Handler, mw ...Middleware) {
|
||||
|
||||
// If we have specifically handled the error, then no need
|
||||
// to initiate a shutdown.
|
||||
// This shouldn't happen because the error middleware should handle this....
|
||||
if webErr, ok := err.(*weberror.Error); ok {
|
||||
// Render an error response.
|
||||
if rerr := RespondErrorStatus(ctx, w, webErr.Err, webErr.Status); rerr == nil {
|
||||
@ -91,6 +92,7 @@ func (a *App) Handle(verb, path string, handler Handler, mw ...Middleware) {
|
||||
if ok := a.SignalShutdown(); !ok {
|
||||
// When shutdown chan is nil, in the case of unit testing
|
||||
// we need to force display of the error.
|
||||
// TODO: the http package captures the panic and wont't force a shutdown, replace this
|
||||
panic(err)
|
||||
}
|
||||
return
|
||||
|
Reference in New Issue
Block a user