adding error handling for call that gets back error_message