1
0
mirror of https://gitlab.com/psuapp/psu.git synced 2024-08-30 18:12:34 +00:00
Juan Carlos Mejías Rodríguez 50d246ecf7 Lowercase error messages
2019-08-10 18:28:00 -04:00

15 lines
248 B
Go

package common
import (
"github.com/sirupsen/logrus"
)
// CheckError checks if an error occurred (it's not nil)
func CheckError(err error) {
if err != nil {
logrus.WithFields(logrus.Fields{
"message": err.Error(),
}).Fatal("error")
}
}