From b6eadb419afd3b6bd5acac65bd894a70965b70c6 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Thu, 29 Aug 2019 05:13:46 -0700 Subject: [PATCH] builder/qemu: Fix dropped error --- builder/qemu/step_run.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/builder/qemu/step_run.go b/builder/qemu/step_run.go index 55390168c..1a5001caf 100644 --- a/builder/qemu/step_run.go +++ b/builder/qemu/step_run.go @@ -96,6 +96,9 @@ func getCommandArgs(bootDrive string, state multistep.StateBag) ([]string, error return nil, err } qemuVersion, err := version.NewVersion(rawVersion) + if err != nil { + return nil, err + } v2 := version.Must(version.NewVersion("2.0")) if qemuVersion.GreaterThanOrEqual(v2) {