Skip to content

Commit

Permalink
Print selector name in declare assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Jul 10, 2022
1 parent 8635d20 commit 63d3d0f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions objc2/src/declare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ impl ClassBuilder {
assert_eq!(
sel_args,
encs.len(),
"Selector accepts {} arguments, but function accepts {}",
"Selector {:?} accepts {} arguments, but function accepts {}",
sel,
sel_args,
encs.len(),
);
Expand Down Expand Up @@ -306,7 +307,8 @@ impl ClassBuilder {
assert_eq!(
sel_args,
encs.len(),
"Selector accepts {} arguments, but function accepts {}",
"Selector {:?} accepts {} arguments, but function accepts {}",
sel,
sel_args,
encs.len(),
);
Expand Down Expand Up @@ -417,7 +419,8 @@ impl ProtocolBuilder {
assert_eq!(
sel_args,
encs.len(),
"Selector accepts {} arguments, but function accepts {}",
"Selector {:?} accepts {} arguments, but function accepts {}",
sel,
sel_args,
encs.len(),
);
Expand Down

0 comments on commit 63d3d0f

Please sign in to comment.