Skip to content

Commit 9ff2666

Browse files
Update assert_failure.bash
1 parent 2915e86 commit 9ff2666

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/assert_failure.bash

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ assert_failure() {
7171
'actual' "$status"
7272
batslib_print_kv_single_or_multi "$width" \
7373
'output' "$output"
74+
if [[ -n "$stderr" ]]; then
75+
batslib_print_kv_single_or_multi "$width" 'stderr' "$stderr"
76+
fi
7477
} \
7578
| batslib_decorate 'command failed as expected, but status differs' \
7679
| fail

0 commit comments

Comments
 (0)