Error handling

This commit is contained in:
simon987
2019-04-06 09:31:53 -04:00
parent e09e16e0fd
commit fd0b421276
2 changed files with 6 additions and 2 deletions

View File

@@ -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!")
}
}