print error messages when a process errors