From 810b9c613b3cb837658a01b440c5ddd406eda9f2 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Tue, 18 Oct 2022 15:40:39 -0400 Subject: [PATCH] return error from infrastructure from data file function --- test/e2e/runner/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/e2e/runner/main.go b/test/e2e/runner/main.go index 0dc376e9f..ad0e7bcd0 100644 --- a/test/e2e/runner/main.go +++ b/test/e2e/runner/main.go @@ -69,6 +69,9 @@ func NewCLI() *CLI { return errors.New("'--infrastructure-data' must be set when using the 'digital-ocean' infrastructure-type") } ifd, err = e2e.InfrastructureDataFromFile(p) + if err != nil { + return err + } default: return fmt.Errorf("unknown infrastructure type '%s'", t) }