Pipe script should print error message on failure