Commit 0eb87bd
committed
fix: flush stderr before printing hooks to ensure correct output order
When a command fails and error-hooks are enabled, the hooks were being
printed before the command's error message appeared in the output, creating
confusing output like:
What's next:
...
docker: open ./no-such-file: no such file or directory
This fix ensures stderr is flushed before printing hooks, so error
messages appear in the correct order:
docker: open ./no-such-file: no such file or directory
What's next:
...
Fixes: #6973
Signed-off-by: vigneshakaviki <kumarvignesh295@gmail.com>1 parent 1d1562e commit 0eb87bd
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
549 | 553 | | |
550 | 554 | | |
551 | 555 | | |
| |||
0 commit comments