Skip to content

Commit

Permalink
Show callstack of failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Sep 17, 2024
1 parent 00b9849 commit 2ff4aba
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/filters/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,11 @@ pub struct ConvertProtoConfigError {

impl ConvertProtoConfigError {
pub fn new(reason: impl std::fmt::Display, field: Option<String>) -> Self {
Self {
reason: reason.to_string(),
field,
}
panic!("ok? {reason} {field:?}");
// Self {
// reason: reason.to_string(),
// field,
// }
}

pub fn missing_field(field: &'static str) -> Self {
Expand Down

0 comments on commit 2ff4aba

Please sign in to comment.