Skip to content

Commit

Permalink
Improve error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
bubelov committed Oct 6, 2024
1 parent 786a89a commit 96e137d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ pub fn call_remote_procedure(name: &str, mut params: Value) {
handle_unsuccessful_response(res);
}
}
Err(_) => {}
Err(e) => {
eprintln!("request failed: {e}");
exit(1);
}
}
}

Expand Down

0 comments on commit 96e137d

Please sign in to comment.