Return errors instead of fatal

This commit is contained in:
andig 2020-07-31 13:32:12 +02:00
parent 2d187750fb
commit 1be64c7353
4 changed files with 11 additions and 12 deletions

View file

@ -11,7 +11,7 @@ const config = "../errors.yaml"
var acceptable map[string][]string
// Acceptable returns true is a test error is configured as acceptable
// Acceptable checks if a test error is configured as acceptable
func Acceptable(class string, err error) bool {
if len(acceptable) == 0 {
definitions, err := ioutil.ReadFile(config)