mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-11-17 13:52:40 +00:00
More verbose error
This commit is contained in:
parent
41411ebdbe
commit
c7aeca1f6e
4
appvm.go
4
appvm.go
|
@ -114,10 +114,10 @@ func start(l *libvirt.Libvirt, name string) {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
_, _, _, err = system.System("nix-build", "<nixpkgs/nixos>", "-A", "config.system.build.vm",
|
stdout, stderr, ret, err := system.System("nix-build", "<nixpkgs/nixos>", "-A", "config.system.build.vm",
|
||||||
"-I", "nixos-config=nix/"+name+".nix", "-I", ".")
|
"-I", "nixos-config=nix/"+name+".nix", "-I", ".")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatalln(err, stdout, stderr, ret)
|
||||||
}
|
}
|
||||||
|
|
||||||
realpath, err := filepath.EvalSymlinks("result/system")
|
realpath, err := filepath.EvalSymlinks("result/system")
|
||||||
|
|
Loading…
Reference in a new issue