in plugin executor remove unnecessary code and improve error messages

This commit is contained in:
jregan
2019-08-19 18:15:39 -07:00
parent 00360f381c
commit bc303c4629
2 changed files with 30 additions and 55 deletions

View File

@@ -72,7 +72,7 @@ data:
if err == nil {
t.Fatalf("expected an error")
}
if !strings.Contains(err.Error(), "data: Invalid type.") {
t.Fatalf("incorrect error %v", err)
if !strings.Contains(err.Error(), "failure in plugin configured via") {
t.Fatalf("unexpected error: %v", err)
}
}