mirror of
https://github.com/versia-pub/versia-go.git
synced 2025-12-06 14:28:20 +01:00
chore(server): rename error in fiber error handler
This commit is contained in:
parent
0e25d7af91
commit
eb90d722df
|
|
@ -26,7 +26,7 @@ func fiberErrorHandler(c *fiber.Ctx, err error) error {
|
||||||
apiErr = api_schema.NewAPIError(fiber.StatusInternalServerError, "Internal Server Error")(nil)
|
apiErr = api_schema.NewAPIError(fiber.StatusInternalServerError, "Internal Server Error")(nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Error().Err(apiErr).Msg("Unhandled error")
|
log.Error().Err(apiErr).Msg("Error")
|
||||||
|
|
||||||
return c.Status(apiErr.StatusCode).JSON(api_schema.NewFailedAPIResponse[any](apiErr))
|
return c.Status(apiErr.StatusCode).JSON(api_schema.NewFailedAPIResponse[any](apiErr))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue