Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: acezen <[email protected]>
  • Loading branch information
acezen committed Jun 26, 2023
1 parent ccfa639 commit eeca88e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cpp/include/gar/reader/arrow_chunk_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,8 @@ class AdjListPropertyArrowChunkReader {
chunk_table_.reset();
}
if (chunk_index_ >= chunk_num_) {
return Status::KeyError("The edge offset ", index, " is out of range [0,",
return Status::KeyError("The edge offset ", offset,
" is out of range [0,",
edge_info_.GetChunkSize() * chunk_num_,
"), edge label: ", edge_info_.GetEdgeLabel());
}
Expand Down
3 changes: 2 additions & 1 deletion cpp/include/gar/reader/chunk_info_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ class AdjListPropertyChunkInfoReader {
Status seek(IdType offset) noexcept {
chunk_index_ = offset / edge_info_.GetChunkSize();
if (chunk_index_ >= chunk_num_) {
return Status::KeyError("The edge offset ", index, " is out of range [0,",
return Status::KeyError("The edge offset ", offset,
" is out of range [0,",
edge_info_.GetChunkSize() * chunk_num_,
"), edge label: ", edge_info_.GetEdgeLabel());
}
Expand Down
1 change: 0 additions & 1 deletion cpp/include/gar/utils/status.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ enum class StatusCode : unsigned char {
kIOError,
kYamlError,
kArrowError,
kNotImplemented,

kUnknownError,
};
Expand Down

0 comments on commit eeca88e

Please sign in to comment.