diff --git a/command/agent/fs_endpoint.go b/command/agent/fs_endpoint.go index 052d805743a..eab245eb384 100644 --- a/command/agent/fs_endpoint.go +++ b/command/agent/fs_endpoint.go @@ -119,7 +119,7 @@ func (s *HTTPServer) FileCatRequest(resp http.ResponseWriter, req *http.Request) return nil, err } if fileInfo.IsDir { - return nil, fmt.Errorf("file %q is a directory") + return nil, fmt.Errorf("file %q is a directory", path) } r, err := fs.ReadAt(path, int64(0), fileInfo.Size)