Commit 92a8c5b8 by Joesis

log error when resolvePath

parent 633ae8c3
...@@ -333,12 +333,12 @@ func (fr *fileReader) resolvePath(path string) string { ...@@ -333,12 +333,12 @@ func (fr *fileReader) resolvePath(path string) string {
copy := path copy := path
path, err := filepath.Abs(path) path, err := filepath.Abs(path)
if err != nil { if err != nil {
fr.log.Error("Could not create absolute path ", "path", path) fr.log.Error("Could not create absolute path", "path", copy, "error", err)
} }
path, err = filepath.EvalSymlinks(path) path, err = filepath.EvalSymlinks(path)
if err != nil { if err != nil {
fr.log.Error("Failed to read content of symlinked path: %s", path) fr.log.Error("Failed to read content of symlinked path", "path", copy, "error", err)
} }
if path == "" { if path == "" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment