Return errors instead of fatal
This commit is contained in:
parent
2d187750fb
commit
1be64c7353
4 changed files with 11 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue