add error handler to retrofit adapter