psu/common/customerrors.go
Juan Carlos Mejías Rodríguez 5dc5f43763 Remove unused CheckResponseForErrors error handling helper
It's logic is now implemented into the Client
2019-08-08 11:56:07 -04:00

14 lines
203 B
Go

package common
import (
"fmt"
"log"
)
// CheckError checks if an error occurred (it's not nil)
func CheckError(err error) {
if err != nil {
log.Fatalln(fmt.Sprintf("Error: %s", err.Error()))
}
}