Commit fd38b53
committed
Replace Ruby-level error rewrite with fix at source in codeowners-rs
Instead of rescuing RuntimeError in validate! and doing a fragile
gsub on the error message string, pass executable_name to RunConfig
so codeowners-rs generates the correct message directly.
This requires a companion change in codeowners-rs that changes
executable_name to hold the full command (e.g. "codeowners generate")
rather than just the binary name, so the format string no longer
hardcodes the " generate" subcommand.1 parent bb519a8 commit fd38b53
File tree
4 files changed
+1
-22
lines changed- ext/code_ownership/src
- lib
- code_ownership
- spec/lib
4 files changed
+1
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | 234 | | |
240 | 235 | | |
241 | 236 | | |
| |||
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | 558 | | |
0 commit comments