Skip to content

Commit

Permalink
Show the error in the nodes example
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwalker committed Aug 15, 2024
1 parent 960c5e1 commit 8eb55af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/include/nodes.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
assert!(graph.run(query("RETURN 1")).await.is_ok());
{
// run a query to ensure the connection is alive
let result = graph.run(query("RETURN 1")).await;
assert!(result.is_ok(), "Query failed: {:?}", result);

let mut result = graph
.execute(
Expand Down

0 comments on commit 8eb55af

Please sign in to comment.