mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 03:21:16 -03:00
tests/read: Make an error more useful
It would be nice to know what the length *is* if it's not the max.
This commit is contained in:
@@ -241,7 +241,7 @@ if test $status -ne 0
|
||||
echo the read of the max amount of data failed unexpectedly
|
||||
end
|
||||
if test (string length "$x") -ne $fish_read_limit
|
||||
echo reading the max amount of data with --nchars failed the length test
|
||||
echo reading the max amount of data with --nchars failed the length test: (string length "$x")
|
||||
end
|
||||
|
||||
# Confirm reading non-interactively works -- \#4206 regression
|
||||
|
||||
Reference in New Issue
Block a user