Skip to content

Commit

Permalink
[Improvement][C++] Refine the error message of Reader SDK (#195)
Browse files Browse the repository at this point in the history
Signed-off-by: Ziy1-Tan <[email protected]>
  • Loading branch information
Ziy1-Tan authored Jul 6, 2023
1 parent e92575e commit c06e81f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cpp/include/gar/reader/arrow_chunk_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class VertexPropertyArrowChunkReader {
}
if (chunk_index_ >= chunk_num_) {
return Status::IndexError("Internal vertex id ", id,
" is not out of range [0,",
" is out of range [0,",
chunk_num_ * vertex_info_.GetChunkSize(),
") of vertex ", vertex_info_.GetLabel());
}
Expand Down
2 changes: 1 addition & 1 deletion cpp/include/gar/reader/chunk_info_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class VertexPropertyChunkInfoReader {
chunk_index_ = id / vertex_info_.GetChunkSize();
if (chunk_index_ >= chunk_num_) {
return Status::IndexError("Internal vertex id ", id,
" is not out of range [0,",
" is out of range [0,",
chunk_num_ * vertex_info_.GetChunkSize(),
") of vertex ", vertex_info_.GetLabel());
}
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/reader_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Result<std::pair<IdType, IdType>> GetAdjListOffsetOfVertex(
} else {
return Status::Invalid(
"The adj list type has to be ordered_by_source or ordered_by_dest, but "
"got " +
"got ",
std::string(AdjListTypeToString(adj_list_type)));
}

Expand Down

0 comments on commit c06e81f

Please sign in to comment.