Added some more logging and documented deploy procedures

This commit is contained in:
2022-04-22 11:09:40 +02:00
parent c9871c817a
commit 9dcaa1ad39
2 changed files with 6 additions and 0 deletions

View File

@@ -143,6 +143,8 @@ func (h Handlers) AccountAuthPassword(c *fiber.Ctx) error {
if err != nil {
if err.Error() == "no rows in result set" {
return c.Status(403).JSON([]ResJSONError{{Error: "Invalid name or password"}})
} else {
h.Log.Error("unknown error when resolving account", "err", err.Error())
}
return c.Status(500).JSON([]ResJSONError{{Error: err.Error()}})