How to see output of multiline steps in pipeline?

CI Job’s output doesn’t show the line it ended on if it is running a multiline bash command. We should find some way to print more verbose logs on error.
“Easiest” way would be to add command || echo “failed doing x” for every command but that would be terrible.