checking error object