output stdout too in case of error