aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_parse.go')
-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 {