print error object to user