Implement methcla_error_message API function