Added get_error_text function
Used get_error_text function