Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Jan 15, 2025
1 parent 3822c23 commit 081a57d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions capnp-rpc/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ fn from_error(error: &Error, mut builder: exception::Builder) {
builder.set_reason(&error.extra);
}
_ => {
// There is extra information in `error.kind` that is not
// captured by `typ`. We call `error.to_string()` to allow that
// information to be recorded in the `reason` field.
builder.set_reason(error.to_string());
}
}
Expand Down

0 comments on commit 081a57d

Please sign in to comment.