Better error tracing
This commit is contained in:
parent
e968f0a5b9
commit
71ef3a290e
9 changed files with 52 additions and 16 deletions
|
|
@ -54,7 +54,7 @@ func (admin *Admin) instanceStats(ctx context.Context) http.Handler {
|
|||
// read statistics
|
||||
ctx.Statistics, err = ctx.Instance.Stats().Get(r.Context(), nil)
|
||||
if err != nil {
|
||||
return ctx, nil, httpx.ErrInternalServerError
|
||||
return ctx, nil, err
|
||||
}
|
||||
|
||||
return ctx, []templating.FlagFunc{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue