decode error messages