mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-14 07:19:02 +00:00
Error handling
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package storage
|
||||
|
||||
import "github.com/sirupsen/logrus"
|
||||
|
||||
func handleErr(err error) {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
logrus.WithError(err).Fatal("Error during database operation!")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user