Fix other linters on modified lines

This commit is contained in:
Katrina Verey
2022-08-10 18:50:28 -04:00
parent f6b72077c8
commit 55a37de686
10 changed files with 19 additions and 11 deletions

View File

@@ -66,7 +66,7 @@ func WriteFile(node *RNode, path string) error {
if err != nil {
return err
}
return os.WriteFile(path, []byte(out), 0600)
return errors.WrapPrefixf(os.WriteFile(path, []byte(out), 0600), "writing RNode to file")
}
// UpdateFile reads the file at path, applies the filter to it, and write the result back.