Skip to content

Commit

Permalink
Update lua_try macro to return underlying error causes as well
Browse files Browse the repository at this point in the history
  • Loading branch information
khvzak committed Mar 19, 2024
1 parent 0981869 commit 1ecf452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion casper-server/src/lua/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ macro_rules! lua_try {
($result:expr) => {
match $result {
Ok(ok) => ok,
Err(err) => return Ok(Err(err.to_string())),
Err(err) => return Ok(Err(format!("{err:#}"))),
}
};
}

0 comments on commit 1ecf452

Please sign in to comment.