mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
13 lines
192 B
Go
13 lines
192 B
Go
package util
|
|
|
|
import (
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
// CheckError checks if an error occurred (it's not nil)
|
|
func CheckError(err error) {
|
|
if err != nil {
|
|
logrus.Fatal(err.Error())
|
|
}
|
|
}
|