aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_parse.go
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-08-26 19:24:18 +0200
committerjoe <rbo@gmx.us>2025-08-26 19:24:18 +0200
commit93aed08e521c7d96d3c53f207fb650b449cdb12c (patch)
treed3bf429138004692a36a4a47df137093f1393fc2 /src/c_parse.go
parentfixed (diff)
downloadhardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.tar.gz
hardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.tar.bz2
hardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.tar.xz
hardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.tar.zst
hardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.zip
fixed all errs and some other things
Diffstat (limited to '')
-rw-r--r--src/c_parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c_parse.go b/src/c_parse.go
index 2c8cddd..5f788e9 100644
--- a/src/c_parse.go
+++ b/src/c_parse.go
@@ -90,7 +90,7 @@ func c_read_yaml_file(file string) (*HostNode, error) {
return nil, err
}
if err := yaml.Unmarshal(yaml_file, &host); err != nil {
- err = errors.New(fmt.Sprintf("%s: %v", file, err))
+ err = fmt.Errorf("%s: %v", file, err)
return nil, err
}
if len(host.Name) == 0 {