diff options
author | Jason Karns <jason@karns.name> | 2016-09-26 16:58:10 +0300 |
---|---|---|
committer | Jason Karns <jason@karns.name> | 2016-09-26 16:58:10 +0300 |
commit | d1c641a0793744656d283f819215686f4069ee14 (patch) | |
tree | 56e178c4527ca93f82f056452299672cf2d27ec4 /src | |
parent | 2300d7b70f48cf90abe4aea2437068527dd99645 (diff) |
Improve failure messageassert-refute-empty
Diffstat (limited to 'src')
-rw-r--r-- | src/assert.bash | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/assert.bash b/src/assert.bash index a52454a..178e299 100644 --- a/src/assert.bash +++ b/src/assert.bash @@ -336,8 +336,9 @@ refute_output() { # Matching. if (( is_mode_empty )); then if [ -n "$output" ]; then - echo 'expected no output, but output was non-empty' \ - | batslib_decorate 'unexpected output' \ + batslib_print_kv_single_or_multi 6 \ + 'output' "$output" \ + | batslib_decorate 'output non-empty, but expected no output' \ | fail fi elif (( is_mode_regexp )); then |