From c7aeca1f6e40d072f40bae3c6a2c8473fe8fcc94 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Thu, 12 Jul 2018 00:00:58 +0000 Subject: [PATCH] More verbose error --- appvm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appvm.go b/appvm.go index b4d54b6..dffdddf 100644 --- a/appvm.go +++ b/appvm.go @@ -114,10 +114,10 @@ func start(l *libvirt.Libvirt, name string) { log.Fatal(err) } - _, _, _, err = system.System("nix-build", "", "-A", "config.system.build.vm", + stdout, stderr, ret, err := system.System("nix-build", "", "-A", "config.system.build.vm", "-I", "nixos-config=nix/"+name+".nix", "-I", ".") if err != nil { - log.Fatal(err) + log.Fatalln(err, stdout, stderr, ret) } realpath, err := filepath.EvalSymlinks("result/system")