Skip to content

Commit

Permalink
Fixed error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
miratepuffin committed May 23, 2024
1 parent 90119bb commit 90b4327
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/tests/test_graphdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1466,7 +1466,7 @@ def test_layer_name():
assert g.edge(0, 1).layer_names == ["_default"]
assert g.edge(0, 2).layer_names == ["awesome layer"]

error_msg = ("The layer_name function is only available once an edge has been exploded via .explode_layers() and .explode(). "
error_msg = ("The layer_name function is only available once an edge has been exploded via .explode_layers() or .explode(). "
"If you want to retrieve the layers for this edge you can use .layer_names")
with pytest.raises(Exception) as e:
g.edges.layer_name()
Expand Down
2 changes: 1 addition & 1 deletion raphtory/src/core/utils/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ pub enum GraphError {
)]
BincodeVersionError(u32, u32),

#[error("The layer_name function is only available once an edge has been exploded via .explode_layers() and .explode(). If you want to retrieve the layers for this edge you can use .layer_names")]
#[error("The layer_name function is only available once an edge has been exploded via .explode_layers() or .explode(). If you want to retrieve the layers for this edge you can use .layer_names")]
LayerNameAPIError,

#[error("The time function is only available once an edge has been exploded via .explode(). You may want to retrieve the history for this edge via .history(), or the earliest/latest time via earliest_time or latest_time")]
Expand Down

0 comments on commit 90b4327

Please sign in to comment.