Skip to content

Commit

Permalink
CUGRAPH_FAIL=>CUGRAPH_EXPECTS
Browse files Browse the repository at this point in the history
  • Loading branch information
seunghwak committed Feb 7, 2025
1 parent 5e9496f commit 3d4fc0a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cpp/src/c_api/neighbor_sampling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -994,9 +994,8 @@ struct neighbor_sampling_functor : public cugraph::c_api::abstract_functor {
// otherwised throw an error and suggest the user to call uniform neighbor sample instead

if (num_edge_types_ > 1) {
if (edge_types == nullptr) {
CUGRAPH_FAIL("edge types are necessary for heterogeneous sampling.");
}
CUGRAPH_EXPECTS(edge_types != nullptr,
"edge types are necessary for heterogeneous sampling.");

// call heterogeneous neighbor sample
if (is_biased_) {
Expand Down

0 comments on commit 3d4fc0a

Please sign in to comment.