Log database error in SubmitWeeklyReport

This commit is contained in:
Imbus 2024-03-20 22:43:03 +01:00
parent 1a7bc9c73c
commit fdaba36d57

View file

@ -32,7 +32,7 @@ func (gs *GState) SubmitWeeklyReport(c *fiber.Ctx) error {
}
if err := gs.Db.AddWeeklyReport(report.ProjectName, username, report.Week, report.DevelopmentTime, report.MeetingTime, report.AdminTime, report.OwnWorkTime, report.StudyTime, report.TestingTime); err != nil {
log.Info("Error adding weekly report")
log.Info("Error adding weekly report to db:", err)
return c.Status(500).SendString(err.Error())
}