aboutsummaryrefslogtreecommitdiffstats
path: root/vm/bhyve
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2023-07-21 11:54:11 +0200
committerTaras Madan <tarasmadan@google.com>2023-07-24 09:12:13 +0000
commit7549a7e1b57831cf6b08ce4700fc6e53417919f9 (patch)
tree8e027cdaf7abbc52a5fb29c37c7137dfd2122e7a /vm/bhyve
parentf7eecac8b446ef11cff4122de6f496ad5eaba3a9 (diff)
all: use special placeholder for errors
Diffstat (limited to 'vm/bhyve')
-rw-r--r--vm/bhyve/bhyve.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/bhyve/bhyve.go b/vm/bhyve/bhyve.go
index ec0eae81a..cb942f8d6 100644
--- a/vm/bhyve/bhyve.go
+++ b/vm/bhyve/bhyve.go
@@ -64,7 +64,7 @@ func ctor(env *vmimpl.Env) (vmimpl.Pool, error) {
Mem: "512M",
}
if err := config.LoadData(env.Config, cfg); err != nil {
- return nil, fmt.Errorf("failed to parse bhyve vm config: %v", err)
+ return nil, fmt.Errorf("failed to parse bhyve vm config: %w", err)
}
if cfg.Count < 1 || cfg.Count > 128 {
return nil, fmt.Errorf("invalid config param count: %v, want [1-128]", cfg.Count)