fix error message, add appid to the output to know which app caused the error