on error, print command and its output