Skip to content

Commit

Permalink
Fix missing format variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Apr 19, 2016
1 parent c3c3b66 commit 37a0c20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/agent/fs_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 37a0c20

Please sign in to comment.