pipefail is not available to POSIX shells like dash
set -o pipefail is now part of POSIX[0] and I believe as soon as someone posts a patch to dash to implement it, it will get included[1].
[0]. https://www.austingroupbugs.net/view.php?id=789
[1]. https://lore.kernel.org/linux-dash/20200701015226.GA6839@gon...
Usually, this is what happens. Usually, the error-signalling return is accompanied by a message (posted to stderr).
> By default, pipes stop piping if one command fails