Commit ac17d93
Fail Flay hook when flay crashes instead of silently passing (#885)
The Flay hook only inspects `result.stdout`, so when `flay` crashes
(non-zero exit, backtrace on stderr, empty stdout) the hook treats it as
"no duplication found" and passes silently. This guards that case: if
flay exits non-zero with no stdout, the hook now fails and surfaces
stderr, matching how `BerksfileCheck` handles a failed run.
Closes #884.
---------
Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
Co-authored-by: Shane da Silva <shane@dasilva.io>1 parent bc038b9 commit ac17d93
2 files changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
27 | 35 | | |
28 | 36 | | |
29 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
60 | 72 | | |
0 commit comments