From f623fcb4cf083a91de3fea7ed6541e4565c99e3f Mon Sep 17 00:00:00 2001 From: David Ferlay Date: Wed, 23 Nov 2022 17:20:12 +0100 Subject: [PATCH] Updating error message for backward compatibility --- account_abstract_payment.go | 4 ++-- account_account.go | 4 ++-- account_account_tag.go | 4 ++-- account_account_template.go | 4 ++-- account_account_type.go | 4 ++-- account_aged_trial_balance.go | 4 ++-- account_analytic_account.go | 4 ++-- account_analytic_line.go | 4 ++-- account_analytic_tag.go | 4 ++-- account_balance_report.go | 4 ++-- account_bank_accounts_wizard.go | 4 ++-- account_bank_statement.go | 4 ++-- account_bank_statement_cashbox.go | 4 ++-- account_bank_statement_closebalance.go | 4 ++-- account_bank_statement_import.go | 4 ++-- account_bank_statement_import_journal_creation.go | 4 ++-- account_bank_statement_line.go | 4 ++-- account_cash_rounding.go | 4 ++-- account_cashbox_line.go | 4 ++-- account_chart_template.go | 4 ++-- account_common_account_report.go | 4 ++-- account_common_journal_report.go | 4 ++-- account_common_partner_report.go | 4 ++-- account_common_report.go | 4 ++-- account_financial_report.go | 4 ++-- account_financial_year_op.go | 4 ++-- account_fiscal_position.go | 4 ++-- account_fiscal_position_account.go | 4 ++-- account_fiscal_position_account_template.go | 4 ++-- account_fiscal_position_tax.go | 4 ++-- account_fiscal_position_tax_template.go | 4 ++-- account_fiscal_position_template.go | 4 ++-- account_fr_fec.go | 4 ++-- account_full_reconcile.go | 4 ++-- account_group.go | 4 ++-- account_invoice.go | 4 ++-- account_invoice_confirm.go | 4 ++-- account_invoice_line.go | 4 ++-- account_invoice_refund.go | 4 ++-- account_invoice_report.go | 4 ++-- account_invoice_tax.go | 4 ++-- account_journal.go | 4 ++-- account_move.go | 4 ++-- account_move_line.go | 4 ++-- account_move_line_reconcile.go | 4 ++-- account_move_line_reconcile_writeoff.go | 4 ++-- account_move_reversal.go | 4 ++-- account_opening.go | 4 ++-- account_partial_reconcile.go | 4 ++-- account_payment.go | 4 ++-- account_payment_method.go | 4 ++-- account_payment_term.go | 4 ++-- account_payment_term_line.go | 4 ++-- account_print_journal.go | 4 ++-- account_reconcile_model.go | 4 ++-- account_reconcile_model_template.go | 4 ++-- account_register_payments.go | 4 ++-- account_report_general_ledger.go | 4 ++-- account_report_partner_ledger.go | 4 ++-- account_tax.go | 4 ++-- account_tax_group.go | 4 ++-- account_tax_report.go | 4 ++-- account_tax_template.go | 4 ++-- account_unreconcile.go | 4 ++-- accounting_report.go | 4 ++-- autosales_config.go | 4 ++-- autosales_config_line.go | 4 ++-- barcode_nomenclature.go | 4 ++-- barcode_rule.go | 4 ++-- barcodes_barcode_events_mixin.go | 4 ++-- base.go | 4 ++-- base_import_import.go | 4 ++-- base_import_tests_models_char.go | 4 ++-- base_import_tests_models_char_noreadonly.go | 4 ++-- base_import_tests_models_char_readonly.go | 4 ++-- base_import_tests_models_char_required.go | 4 ++-- base_import_tests_models_char_states.go | 4 ++-- base_import_tests_models_char_stillreadonly.go | 4 ++-- base_import_tests_models_m2o.go | 4 ++-- base_import_tests_models_m2o_related.go | 4 ++-- base_import_tests_models_m2o_required.go | 4 ++-- base_import_tests_models_m2o_required_related.go | 4 ++-- base_import_tests_models_o2m.go | 4 ++-- base_import_tests_models_o2m_child.go | 4 ++-- base_import_tests_models_preview.go | 4 ++-- base_language_export.go | 4 ++-- base_language_import.go | 4 ++-- base_language_install.go | 4 ++-- base_module_uninstall.go | 4 ++-- base_module_update.go | 4 ++-- base_module_upgrade.go | 4 ++-- base_partner_merge_automatic_wizard.go | 4 ++-- base_partner_merge_line.go | 4 ++-- base_update_translations.go | 4 ++-- board_board.go | 4 ++-- bus_bus.go | 4 ++-- bus_presence.go | 4 ++-- calendar_alarm.go | 4 ++-- calendar_alarm_manager.go | 4 ++-- calendar_attendee.go | 4 ++-- calendar_contacts.go | 4 ++-- calendar_event.go | 4 ++-- calendar_event_type.go | 4 ++-- cash_box_in.go | 4 ++-- cash_box_out.go | 4 ++-- change_password_user.go | 4 ++-- change_password_wizard.go | 4 ++-- crm_activity_report.go | 4 ++-- crm_lead.go | 4 ++-- crm_lead2opportunity_partner.go | 4 ++-- crm_lead2opportunity_partner_mass.go | 4 ++-- crm_lead_lost.go | 4 ++-- crm_lead_tag.go | 4 ++-- crm_lost_reason.go | 4 ++-- crm_merge_opportunity.go | 4 ++-- crm_opportunity_report.go | 4 ++-- crm_partner_binding.go | 4 ++-- crm_stage.go | 4 ++-- crm_team.go | 4 ++-- decimal_precision.go | 4 ++-- decimal_precision_test.go | 4 ++-- email_template_preview.go | 4 ++-- fetchmail_server.go | 4 ++-- format_address_mixin.go | 4 ++-- generator/cmd/tmpl/model.tmpl | 4 ++-- hr_department.go | 4 ++-- hr_employee.go | 4 ++-- hr_employee_category.go | 4 ++-- hr_holidays.go | 4 ++-- hr_holidays_remaining_leaves_user.go | 4 ++-- hr_holidays_status.go | 4 ++-- hr_holidays_summary_dept.go | 4 ++-- hr_holidays_summary_employee.go | 4 ++-- hr_job.go | 4 ++-- iap_account.go | 4 ++-- im_livechat_channel.go | 4 ++-- im_livechat_channel_rule.go | 4 ++-- im_livechat_report_channel.go | 4 ++-- im_livechat_report_operator.go | 4 ++-- ir_actions_act_url.go | 4 ++-- ir_actions_act_window.go | 4 ++-- ir_actions_act_window_close.go | 4 ++-- ir_actions_act_window_view.go | 4 ++-- ir_actions_actions.go | 4 ++-- ir_actions_client.go | 4 ++-- ir_actions_report.go | 4 ++-- ir_actions_server.go | 4 ++-- ir_actions_todo.go | 4 ++-- ir_attachment.go | 4 ++-- ir_autovacuum.go | 4 ++-- ir_config_parameter.go | 4 ++-- ir_cron.go | 4 ++-- ir_default.go | 4 ++-- ir_exports.go | 4 ++-- ir_exports_line.go | 4 ++-- ir_fields_converter.go | 4 ++-- ir_filters.go | 4 ++-- ir_http.go | 4 ++-- ir_logging.go | 4 ++-- ir_mail_server.go | 4 ++-- ir_model.go | 4 ++-- ir_model_access.go | 4 ++-- ir_model_constraint.go | 4 ++-- ir_model_data.go | 4 ++-- ir_model_fields.go | 4 ++-- ir_model_relation.go | 4 ++-- ir_module_category.go | 4 ++-- ir_module_module.go | 4 ++-- ir_module_module_dependency.go | 4 ++-- ir_module_module_exclusion.go | 4 ++-- ir_property.go | 4 ++-- ir_qweb.go | 4 ++-- ir_qweb_field.go | 4 ++-- ir_qweb_field_barcode.go | 4 ++-- ir_qweb_field_contact.go | 4 ++-- ir_qweb_field_date.go | 4 ++-- ir_qweb_field_datetime.go | 4 ++-- ir_qweb_field_duration.go | 4 ++-- ir_qweb_field_float.go | 4 ++-- ir_qweb_field_float_time.go | 4 ++-- ir_qweb_field_html.go | 4 ++-- ir_qweb_field_image.go | 4 ++-- ir_qweb_field_integer.go | 4 ++-- ir_qweb_field_many2one.go | 4 ++-- ir_qweb_field_monetary.go | 4 ++-- ir_qweb_field_qweb.go | 4 ++-- ir_qweb_field_relative.go | 4 ++-- ir_qweb_field_selection.go | 4 ++-- ir_qweb_field_text.go | 4 ++-- ir_rule.go | 4 ++-- ir_sequence.go | 4 ++-- ir_sequence_date_range.go | 4 ++-- ir_server_object_lines.go | 4 ++-- ir_translation.go | 4 ++-- ir_ui_menu.go | 4 ++-- ir_ui_view.go | 4 ++-- ir_ui_view_custom.go | 4 ++-- link_tracker.go | 4 ++-- link_tracker_click.go | 4 ++-- link_tracker_code.go | 4 ++-- mail_activity.go | 4 ++-- mail_activity_mixin.go | 4 ++-- mail_activity_type.go | 4 ++-- mail_alias.go | 4 ++-- mail_alias_mixin.go | 4 ++-- mail_channel.go | 4 ++-- mail_channel_partner.go | 4 ++-- mail_compose_message.go | 4 ++-- mail_followers.go | 4 ++-- mail_mail.go | 4 ++-- mail_mail_statistics.go | 4 ++-- mail_mass_mailing.go | 4 ++-- mail_mass_mailing_campaign.go | 4 ++-- mail_mass_mailing_contact.go | 4 ++-- mail_mass_mailing_list.go | 4 ++-- mail_mass_mailing_stage.go | 4 ++-- mail_mass_mailing_tag.go | 4 ++-- mail_mass_mailing_test.go | 4 ++-- mail_message.go | 4 ++-- mail_message_subtype.go | 4 ++-- mail_notification.go | 4 ++-- mail_shortcode.go | 4 ++-- mail_statistics_report.go | 4 ++-- mail_template.go | 4 ++-- mail_test.go | 4 ++-- mail_test_simple.go | 4 ++-- mail_thread.go | 4 ++-- mail_tracking_value.go | 4 ++-- mail_wizard_invite.go | 4 ++-- payment_acquirer.go | 4 ++-- payment_icon.go | 4 ++-- payment_token.go | 4 ++-- payment_transaction.go | 4 ++-- portal_mixin.go | 4 ++-- portal_wizard.go | 4 ++-- portal_wizard_user.go | 4 ++-- procurement_group.go | 4 ++-- procurement_rule.go | 4 ++-- product_attribute.go | 4 ++-- product_attribute_line.go | 4 ++-- product_attribute_price.go | 4 ++-- product_attribute_value.go | 4 ++-- product_category.go | 4 ++-- product_packaging.go | 4 ++-- product_price_history.go | 4 ++-- product_price_list.go | 4 ++-- product_pricelist.go | 4 ++-- product_pricelist_item.go | 4 ++-- product_product.go | 4 ++-- product_putaway.go | 4 ++-- product_removal.go | 4 ++-- product_supplierinfo.go | 4 ++-- product_template.go | 4 ++-- product_uom.go | 4 ++-- product_uom_categ.go | 4 ++-- project_project.go | 4 ++-- project_tags.go | 4 ++-- project_task.go | 4 ++-- project_task_merge_wizard.go | 4 ++-- project_task_type.go | 4 ++-- publisher_warranty_contract.go | 4 ++-- purchase_order.go | 4 ++-- purchase_order_line.go | 4 ++-- purchase_report.go | 4 ++-- queue_job.go | 4 ++-- queue_job_channel.go | 4 ++-- queue_job_function.go | 4 ++-- queue_requeue_job.go | 4 ++-- rating_mixin.go | 4 ++-- rating_rating.go | 4 ++-- report_account_report_agedpartnerbalance.go | 4 ++-- report_account_report_financial.go | 4 ++-- report_account_report_generalledger.go | 4 ++-- report_account_report_journal.go | 4 ++-- report_account_report_overdue.go | 4 ++-- report_account_report_partnerledger.go | 4 ++-- report_account_report_tax.go | 4 ++-- report_account_report_trialbalance.go | 4 ++-- report_all_channels_sales.go | 4 ++-- report_base_report_irmodulereference.go | 4 ++-- report_hr_holidays_report_holidayssummary.go | 4 ++-- report_paperformat.go | 4 ++-- report_product_report_pricelist.go | 4 ++-- report_project_task_user.go | 4 ++-- report_sale_report_saleproforma.go | 4 ++-- report_stock_forecast.go | 4 ++-- res_bank.go | 4 ++-- res_company.go | 4 ++-- res_config.go | 4 ++-- res_config_installer.go | 4 ++-- res_config_settings.go | 4 ++-- res_country.go | 4 ++-- res_country_group.go | 4 ++-- res_country_state.go | 4 ++-- res_currency.go | 4 ++-- res_currency_rate.go | 4 ++-- res_groups.go | 4 ++-- res_lang.go | 4 ++-- res_partner.go | 4 ++-- res_partner_bank.go | 4 ++-- res_partner_category.go | 4 ++-- res_partner_industry.go | 4 ++-- res_partner_title.go | 4 ++-- res_request_link.go | 4 ++-- res_users.go | 4 ++-- res_users_log.go | 4 ++-- resource_calendar.go | 4 ++-- resource_calendar_attendance.go | 4 ++-- resource_calendar_leaves.go | 4 ++-- resource_mixin.go | 4 ++-- resource_resource.go | 4 ++-- resource_test.go | 4 ++-- sale_advance_payment_inv.go | 4 ++-- sale_layout_category.go | 4 ++-- sale_order.go | 4 ++-- sale_order_line.go | 4 ++-- sale_report.go | 4 ++-- sms_api.go | 4 ++-- sms_send_sms.go | 4 ++-- sparse_fields_test.go | 4 ++-- stock_backorder_confirmation.go | 4 ++-- stock_change_product_qty.go | 4 ++-- stock_change_standard_price.go | 4 ++-- stock_fixed_putaway_strat.go | 4 ++-- stock_immediate_transfer.go | 4 ++-- stock_incoterms.go | 4 ++-- stock_inventory.go | 4 ++-- stock_inventory_line.go | 4 ++-- stock_location.go | 4 ++-- stock_location_path.go | 4 ++-- stock_location_route.go | 4 ++-- stock_move.go | 4 ++-- stock_move_line.go | 4 ++-- stock_overprocessed_transfer.go | 4 ++-- stock_picking.go | 4 ++-- stock_picking_type.go | 4 ++-- stock_production_lot.go | 4 ++-- stock_quant.go | 4 ++-- stock_quant_package.go | 4 ++-- stock_quantity_history.go | 4 ++-- stock_return_picking.go | 4 ++-- stock_return_picking_line.go | 4 ++-- stock_scheduler_compute.go | 4 ++-- stock_scrap.go | 4 ++-- stock_traceability_report.go | 4 ++-- stock_warehouse.go | 4 ++-- stock_warehouse_orderpoint.go | 4 ++-- stock_warn_insufficient_qty.go | 4 ++-- stock_warn_insufficient_qty_scrap.go | 4 ++-- tax_adjustments_wizard.go | 4 ++-- utm_campaign.go | 4 ++-- utm_medium.go | 4 ++-- utm_mixin.go | 4 ++-- utm_source.go | 4 ++-- validate_account_move.go | 4 ++-- web_editor_converter_test.go | 4 ++-- web_editor_converter_test_sub.go | 4 ++-- web_planner.go | 4 ++-- web_tour_tour.go | 4 ++-- wizard_ir_model_menu_create.go | 4 ++-- wizard_multi_charts_accounts.go | 4 ++-- 361 files changed, 722 insertions(+), 722 deletions(-) diff --git a/account_abstract_payment.go b/account_abstract_payment.go index 002c47ac..81f46550 100644 --- a/account_abstract_payment.go +++ b/account_abstract_payment.go @@ -90,7 +90,7 @@ func (c *Client) FindAccountAbstractPayment(criteria *Criteria) (*AccountAbstrac if aaps != nil && len(*aaps) > 0 { return &((*aaps)[0]), nil } - return nil, fmt.Errorf("no account.abstract.payment was found with criteria %v", criteria) + return nil, fmt.Errorf("account.abstract.payment was not found with criteria %v", criteria) } // FindAccountAbstractPayments finds account.abstract.payment records by querying it @@ -122,5 +122,5 @@ func (c *Client) FindAccountAbstractPaymentId(criteria *Criteria, options *Optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.abstract.payment was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.abstract.payment was not found with criteria %v and options %v", criteria, options) } diff --git a/account_account.go b/account_account.go index a1887fb3..3bd1f00d 100644 --- a/account_account.go +++ b/account_account.go @@ -97,7 +97,7 @@ func (c *Client) FindAccountAccount(criteria *Criteria) (*AccountAccount, error) if aas != nil && len(*aas) > 0 { return &((*aas)[0]), nil } - return nil, fmt.Errorf("no account.account was found with criteria %v", criteria) + return nil, fmt.Errorf("account.account was not found with criteria %v", criteria) } // FindAccountAccounts finds account.account records by querying it @@ -129,5 +129,5 @@ func (c *Client) FindAccountAccountId(criteria *Criteria, options *Options) (int if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.account was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.account was not found with criteria %v and options %v", criteria, options) } diff --git a/account_account_tag.go b/account_account_tag.go index ab2d4c1b..6bc8f4e2 100644 --- a/account_account_tag.go +++ b/account_account_tag.go @@ -86,7 +86,7 @@ func (c *Client) FindAccountAccountTag(criteria *Criteria) (*AccountAccountTag, if aats != nil && len(*aats) > 0 { return &((*aats)[0]), nil } - return nil, fmt.Errorf("no account.account.tag was found with criteria %v", criteria) + return nil, fmt.Errorf("account.account.tag was not found with criteria %v", criteria) } // FindAccountAccountTags finds account.account.tag records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindAccountAccountTagId(criteria *Criteria, options *Options) ( if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.account.tag was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.account.tag was not found with criteria %v and options %v", criteria, options) } diff --git a/account_account_template.go b/account_account_template.go index 6f9f2a82..9403fa00 100644 --- a/account_account_template.go +++ b/account_account_template.go @@ -93,7 +93,7 @@ func (c *Client) FindAccountAccountTemplate(criteria *Criteria) (*AccountAccount if aats != nil && len(*aats) > 0 { return &((*aats)[0]), nil } - return nil, fmt.Errorf("no account.account.template was found with criteria %v", criteria) + return nil, fmt.Errorf("account.account.template was not found with criteria %v", criteria) } // FindAccountAccountTemplates finds account.account.template records by querying it @@ -125,5 +125,5 @@ func (c *Client) FindAccountAccountTemplateId(criteria *Criteria, options *Optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.account.template was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.account.template was not found with criteria %v and options %v", criteria, options) } diff --git a/account_account_type.go b/account_account_type.go index d639ec5a..47f7d133 100644 --- a/account_account_type.go +++ b/account_account_type.go @@ -86,7 +86,7 @@ func (c *Client) FindAccountAccountType(criteria *Criteria) (*AccountAccountType if aats != nil && len(*aats) > 0 { return &((*aats)[0]), nil } - return nil, fmt.Errorf("no account.account.type was found with criteria %v", criteria) + return nil, fmt.Errorf("account.account.type was not found with criteria %v", criteria) } // FindAccountAccountTypes finds account.account.type records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindAccountAccountTypeId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.account.type was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.account.type was not found with criteria %v and options %v", criteria, options) } diff --git a/account_aged_trial_balance.go b/account_aged_trial_balance.go index 15adac6e..83319733 100644 --- a/account_aged_trial_balance.go +++ b/account_aged_trial_balance.go @@ -89,7 +89,7 @@ func (c *Client) FindAccountAgedTrialBalance(criteria *Criteria) (*AccountAgedTr if aatbs != nil && len(*aatbs) > 0 { return &((*aatbs)[0]), nil } - return nil, fmt.Errorf("no account.aged.trial.balance was found with criteria %v", criteria) + return nil, fmt.Errorf("account.aged.trial.balance was not found with criteria %v", criteria) } // FindAccountAgedTrialBalances finds account.aged.trial.balance records by querying it @@ -121,5 +121,5 @@ func (c *Client) FindAccountAgedTrialBalanceId(criteria *Criteria, options *Opti if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.aged.trial.balance was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.aged.trial.balance was not found with criteria %v and options %v", criteria, options) } diff --git a/account_analytic_account.go b/account_analytic_account.go index c891f1e6..08cf83c6 100644 --- a/account_analytic_account.go +++ b/account_analytic_account.go @@ -109,7 +109,7 @@ func (c *Client) FindAccountAnalyticAccount(criteria *Criteria) (*AccountAnalyti if aaas != nil && len(*aaas) > 0 { return &((*aaas)[0]), nil } - return nil, fmt.Errorf("no account.analytic.account was found with criteria %v", criteria) + return nil, fmt.Errorf("account.analytic.account was not found with criteria %v", criteria) } // FindAccountAnalyticAccounts finds account.analytic.account records by querying it @@ -141,5 +141,5 @@ func (c *Client) FindAccountAnalyticAccountId(criteria *Criteria, options *Optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.analytic.account was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.analytic.account was not found with criteria %v and options %v", criteria, options) } diff --git a/account_analytic_line.go b/account_analytic_line.go index 7a5897c5..748c98ac 100644 --- a/account_analytic_line.go +++ b/account_analytic_line.go @@ -110,7 +110,7 @@ func (c *Client) FindAccountAnalyticLine(criteria *Criteria) (*AccountAnalyticLi if aals != nil && len(*aals) > 0 { return &((*aals)[0]), nil } - return nil, fmt.Errorf("no account.analytic.line was found with criteria %v", criteria) + return nil, fmt.Errorf("account.analytic.line was not found with criteria %v", criteria) } // FindAccountAnalyticLines finds account.analytic.line records by querying it @@ -142,5 +142,5 @@ func (c *Client) FindAccountAnalyticLineId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.analytic.line was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.analytic.line was not found with criteria %v and options %v", criteria, options) } diff --git a/account_analytic_tag.go b/account_analytic_tag.go index 67e0a9b6..a9db0786 100644 --- a/account_analytic_tag.go +++ b/account_analytic_tag.go @@ -85,7 +85,7 @@ func (c *Client) FindAccountAnalyticTag(criteria *Criteria) (*AccountAnalyticTag if aats != nil && len(*aats) > 0 { return &((*aats)[0]), nil } - return nil, fmt.Errorf("no account.analytic.tag was found with criteria %v", criteria) + return nil, fmt.Errorf("account.analytic.tag was not found with criteria %v", criteria) } // FindAccountAnalyticTags finds account.analytic.tag records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindAccountAnalyticTagId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.analytic.tag was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.analytic.tag was not found with criteria %v and options %v", criteria, options) } diff --git a/account_balance_report.go b/account_balance_report.go index 0bb7488a..dc51a13d 100644 --- a/account_balance_report.go +++ b/account_balance_report.go @@ -88,7 +88,7 @@ func (c *Client) FindAccountBalanceReport(criteria *Criteria) (*AccountBalanceRe if abrs != nil && len(*abrs) > 0 { return &((*abrs)[0]), nil } - return nil, fmt.Errorf("no account.balance.report was found with criteria %v", criteria) + return nil, fmt.Errorf("account.balance.report was not found with criteria %v", criteria) } // FindAccountBalanceReports finds account.balance.report records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindAccountBalanceReportId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.balance.report was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.balance.report was not found with criteria %v and options %v", criteria, options) } diff --git a/account_bank_accounts_wizard.go b/account_bank_accounts_wizard.go index d3fbcfb6..36b29fe1 100644 --- a/account_bank_accounts_wizard.go +++ b/account_bank_accounts_wizard.go @@ -86,7 +86,7 @@ func (c *Client) FindAccountBankAccountsWizard(criteria *Criteria) (*AccountBank if abaws != nil && len(*abaws) > 0 { return &((*abaws)[0]), nil } - return nil, fmt.Errorf("no account.bank.accounts.wizard was found with criteria %v", criteria) + return nil, fmt.Errorf("account.bank.accounts.wizard was not found with criteria %v", criteria) } // FindAccountBankAccountsWizards finds account.bank.accounts.wizard records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindAccountBankAccountsWizardId(criteria *Criteria, options *Op if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.bank.accounts.wizard was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.bank.accounts.wizard was not found with criteria %v and options %v", criteria, options) } diff --git a/account_bank_statement.go b/account_bank_statement.go index f51f701d..f752ac75 100644 --- a/account_bank_statement.go +++ b/account_bank_statement.go @@ -115,7 +115,7 @@ func (c *Client) FindAccountBankStatement(criteria *Criteria) (*AccountBankState if abss != nil && len(*abss) > 0 { return &((*abss)[0]), nil } - return nil, fmt.Errorf("no account.bank.statement was found with criteria %v", criteria) + return nil, fmt.Errorf("account.bank.statement was not found with criteria %v", criteria) } // FindAccountBankStatements finds account.bank.statement records by querying it @@ -147,5 +147,5 @@ func (c *Client) FindAccountBankStatementId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.bank.statement was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.bank.statement was not found with criteria %v and options %v", criteria, options) } diff --git a/account_bank_statement_cashbox.go b/account_bank_statement_cashbox.go index 8907ba71..4e14742a 100644 --- a/account_bank_statement_cashbox.go +++ b/account_bank_statement_cashbox.go @@ -83,7 +83,7 @@ func (c *Client) FindAccountBankStatementCashbox(criteria *Criteria) (*AccountBa if abscs != nil && len(*abscs) > 0 { return &((*abscs)[0]), nil } - return nil, fmt.Errorf("no account.bank.statement.cashbox was found with criteria %v", criteria) + return nil, fmt.Errorf("account.bank.statement.cashbox was not found with criteria %v", criteria) } // FindAccountBankStatementCashboxs finds account.bank.statement.cashbox records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindAccountBankStatementCashboxId(criteria *Criteria, options * if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.bank.statement.cashbox was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.bank.statement.cashbox was not found with criteria %v and options %v", criteria, options) } diff --git a/account_bank_statement_closebalance.go b/account_bank_statement_closebalance.go index 8358677e..3b94d998 100644 --- a/account_bank_statement_closebalance.go +++ b/account_bank_statement_closebalance.go @@ -82,7 +82,7 @@ func (c *Client) FindAccountBankStatementClosebalance(criteria *Criteria) (*Acco if abscs != nil && len(*abscs) > 0 { return &((*abscs)[0]), nil } - return nil, fmt.Errorf("no account.bank.statement.closebalance was found with criteria %v", criteria) + return nil, fmt.Errorf("account.bank.statement.closebalance was not found with criteria %v", criteria) } // FindAccountBankStatementClosebalances finds account.bank.statement.closebalance records by querying it @@ -114,5 +114,5 @@ func (c *Client) FindAccountBankStatementClosebalanceId(criteria *Criteria, opti if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.bank.statement.closebalance was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.bank.statement.closebalance was not found with criteria %v and options %v", criteria, options) } diff --git a/account_bank_statement_import.go b/account_bank_statement_import.go index 92161f42..5fd2281b 100644 --- a/account_bank_statement_import.go +++ b/account_bank_statement_import.go @@ -84,7 +84,7 @@ func (c *Client) FindAccountBankStatementImport(criteria *Criteria) (*AccountBan if absis != nil && len(*absis) > 0 { return &((*absis)[0]), nil } - return nil, fmt.Errorf("no account.bank.statement.import was found with criteria %v", criteria) + return nil, fmt.Errorf("account.bank.statement.import was not found with criteria %v", criteria) } // FindAccountBankStatementImports finds account.bank.statement.import records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindAccountBankStatementImportId(criteria *Criteria, options *O if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.bank.statement.import was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.bank.statement.import was not found with criteria %v and options %v", criteria, options) } diff --git a/account_bank_statement_import_journal_creation.go b/account_bank_statement_import_journal_creation.go index d6ec9187..f2f4f0d8 100644 --- a/account_bank_statement_import_journal_creation.go +++ b/account_bank_statement_import_journal_creation.go @@ -117,7 +117,7 @@ func (c *Client) FindAccountBankStatementImportJournalCreation(criteria *Criteri if absijcs != nil && len(*absijcs) > 0 { return &((*absijcs)[0]), nil } - return nil, fmt.Errorf("no account.bank.statement.import.journal.creation was found with criteria %v", criteria) + return nil, fmt.Errorf("account.bank.statement.import.journal.creation was not found with criteria %v", criteria) } // FindAccountBankStatementImportJournalCreations finds account.bank.statement.import.journal.creation records by querying it @@ -149,5 +149,5 @@ func (c *Client) FindAccountBankStatementImportJournalCreationId(criteria *Crite if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.bank.statement.import.journal.creation was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.bank.statement.import.journal.creation was not found with criteria %v and options %v", criteria, options) } diff --git a/account_bank_statement_line.go b/account_bank_statement_line.go index 5fa71aaa..e637b818 100644 --- a/account_bank_statement_line.go +++ b/account_bank_statement_line.go @@ -102,7 +102,7 @@ func (c *Client) FindAccountBankStatementLine(criteria *Criteria) (*AccountBankS if absls != nil && len(*absls) > 0 { return &((*absls)[0]), nil } - return nil, fmt.Errorf("no account.bank.statement.line was found with criteria %v", criteria) + return nil, fmt.Errorf("account.bank.statement.line was not found with criteria %v", criteria) } // FindAccountBankStatementLines finds account.bank.statement.line records by querying it @@ -134,5 +134,5 @@ func (c *Client) FindAccountBankStatementLineId(criteria *Criteria, options *Opt if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.bank.statement.line was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.bank.statement.line was not found with criteria %v and options %v", criteria, options) } diff --git a/account_cash_rounding.go b/account_cash_rounding.go index 0c48eeb0..33e9ef3c 100644 --- a/account_cash_rounding.go +++ b/account_cash_rounding.go @@ -87,7 +87,7 @@ func (c *Client) FindAccountCashRounding(criteria *Criteria) (*AccountCashRoundi if acrs != nil && len(*acrs) > 0 { return &((*acrs)[0]), nil } - return nil, fmt.Errorf("no account.cash.rounding was found with criteria %v", criteria) + return nil, fmt.Errorf("account.cash.rounding was not found with criteria %v", criteria) } // FindAccountCashRoundings finds account.cash.rounding records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindAccountCashRoundingId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.cash.rounding was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.cash.rounding was not found with criteria %v and options %v", criteria, options) } diff --git a/account_cashbox_line.go b/account_cashbox_line.go index 97336c3b..fbeb522e 100644 --- a/account_cashbox_line.go +++ b/account_cashbox_line.go @@ -86,7 +86,7 @@ func (c *Client) FindAccountCashboxLine(criteria *Criteria) (*AccountCashboxLine if acls != nil && len(*acls) > 0 { return &((*acls)[0]), nil } - return nil, fmt.Errorf("no account.cashbox.line was found with criteria %v", criteria) + return nil, fmt.Errorf("account.cashbox.line was not found with criteria %v", criteria) } // FindAccountCashboxLines finds account.cashbox.line records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindAccountCashboxLineId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.cashbox.line was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.cashbox.line was not found with criteria %v and options %v", criteria, options) } diff --git a/account_chart_template.go b/account_chart_template.go index ea1f6458..57074b12 100644 --- a/account_chart_template.go +++ b/account_chart_template.go @@ -106,7 +106,7 @@ func (c *Client) FindAccountChartTemplate(criteria *Criteria) (*AccountChartTemp if acts != nil && len(*acts) > 0 { return &((*acts)[0]), nil } - return nil, fmt.Errorf("no account.chart.template was found with criteria %v", criteria) + return nil, fmt.Errorf("account.chart.template was not found with criteria %v", criteria) } // FindAccountChartTemplates finds account.chart.template records by querying it @@ -138,5 +138,5 @@ func (c *Client) FindAccountChartTemplateId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.chart.template was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.chart.template was not found with criteria %v and options %v", criteria, options) } diff --git a/account_common_account_report.go b/account_common_account_report.go index 341e726e..7a4c22bb 100644 --- a/account_common_account_report.go +++ b/account_common_account_report.go @@ -88,7 +88,7 @@ func (c *Client) FindAccountCommonAccountReport(criteria *Criteria) (*AccountCom if acars != nil && len(*acars) > 0 { return &((*acars)[0]), nil } - return nil, fmt.Errorf("no account.common.account.report was found with criteria %v", criteria) + return nil, fmt.Errorf("account.common.account.report was not found with criteria %v", criteria) } // FindAccountCommonAccountReports finds account.common.account.report records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindAccountCommonAccountReportId(criteria *Criteria, options *O if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.common.account.report was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.common.account.report was not found with criteria %v and options %v", criteria, options) } diff --git a/account_common_journal_report.go b/account_common_journal_report.go index b4e269e6..7bf36734 100644 --- a/account_common_journal_report.go +++ b/account_common_journal_report.go @@ -88,7 +88,7 @@ func (c *Client) FindAccountCommonJournalReport(criteria *Criteria) (*AccountCom if acjrs != nil && len(*acjrs) > 0 { return &((*acjrs)[0]), nil } - return nil, fmt.Errorf("no account.common.journal.report was found with criteria %v", criteria) + return nil, fmt.Errorf("account.common.journal.report was not found with criteria %v", criteria) } // FindAccountCommonJournalReports finds account.common.journal.report records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindAccountCommonJournalReportId(criteria *Criteria, options *O if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.common.journal.report was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.common.journal.report was not found with criteria %v and options %v", criteria, options) } diff --git a/account_common_partner_report.go b/account_common_partner_report.go index 6909b59c..eeca1846 100644 --- a/account_common_partner_report.go +++ b/account_common_partner_report.go @@ -88,7 +88,7 @@ func (c *Client) FindAccountCommonPartnerReport(criteria *Criteria) (*AccountCom if acprs != nil && len(*acprs) > 0 { return &((*acprs)[0]), nil } - return nil, fmt.Errorf("no account.common.partner.report was found with criteria %v", criteria) + return nil, fmt.Errorf("account.common.partner.report was not found with criteria %v", criteria) } // FindAccountCommonPartnerReports finds account.common.partner.report records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindAccountCommonPartnerReportId(criteria *Criteria, options *O if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.common.partner.report was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.common.partner.report was not found with criteria %v and options %v", criteria, options) } diff --git a/account_common_report.go b/account_common_report.go index 3411d9f8..292706a1 100644 --- a/account_common_report.go +++ b/account_common_report.go @@ -87,7 +87,7 @@ func (c *Client) FindAccountCommonReport(criteria *Criteria) (*AccountCommonRepo if acrs != nil && len(*acrs) > 0 { return &((*acrs)[0]), nil } - return nil, fmt.Errorf("no account.common.report was found with criteria %v", criteria) + return nil, fmt.Errorf("account.common.report was not found with criteria %v", criteria) } // FindAccountCommonReports finds account.common.report records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindAccountCommonReportId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.common.report was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.common.report was not found with criteria %v and options %v", criteria, options) } diff --git a/account_financial_report.go b/account_financial_report.go index 27b08bc1..df8f9026 100644 --- a/account_financial_report.go +++ b/account_financial_report.go @@ -94,7 +94,7 @@ func (c *Client) FindAccountFinancialReport(criteria *Criteria) (*AccountFinanci if afrs != nil && len(*afrs) > 0 { return &((*afrs)[0]), nil } - return nil, fmt.Errorf("no account.financial.report was found with criteria %v", criteria) + return nil, fmt.Errorf("account.financial.report was not found with criteria %v", criteria) } // FindAccountFinancialReports finds account.financial.report records by querying it @@ -126,5 +126,5 @@ func (c *Client) FindAccountFinancialReportId(criteria *Criteria, options *Optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.financial.report was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.financial.report was not found with criteria %v and options %v", criteria, options) } diff --git a/account_financial_year_op.go b/account_financial_year_op.go index c11aae34..d02747a9 100644 --- a/account_financial_year_op.go +++ b/account_financial_year_op.go @@ -88,7 +88,7 @@ func (c *Client) FindAccountFinancialYearOp(criteria *Criteria) (*AccountFinanci if afyos != nil && len(*afyos) > 0 { return &((*afyos)[0]), nil } - return nil, fmt.Errorf("no account.financial.year.op was found with criteria %v", criteria) + return nil, fmt.Errorf("account.financial.year.op was not found with criteria %v", criteria) } // FindAccountFinancialYearOps finds account.financial.year.op records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindAccountFinancialYearOpId(criteria *Criteria, options *Optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.financial.year.op was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.financial.year.op was not found with criteria %v and options %v", criteria, options) } diff --git a/account_fiscal_position.go b/account_fiscal_position.go index c4b5bc29..5f43022b 100644 --- a/account_fiscal_position.go +++ b/account_fiscal_position.go @@ -97,7 +97,7 @@ func (c *Client) FindAccountFiscalPosition(criteria *Criteria) (*AccountFiscalPo if afps != nil && len(*afps) > 0 { return &((*afps)[0]), nil } - return nil, fmt.Errorf("no account.fiscal.position was found with criteria %v", criteria) + return nil, fmt.Errorf("account.fiscal.position was not found with criteria %v", criteria) } // FindAccountFiscalPositions finds account.fiscal.position records by querying it @@ -129,5 +129,5 @@ func (c *Client) FindAccountFiscalPositionId(criteria *Criteria, options *Option if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.fiscal.position was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.fiscal.position was not found with criteria %v and options %v", criteria, options) } diff --git a/account_fiscal_position_account.go b/account_fiscal_position_account.go index f98f2554..f0608304 100644 --- a/account_fiscal_position_account.go +++ b/account_fiscal_position_account.go @@ -85,7 +85,7 @@ func (c *Client) FindAccountFiscalPositionAccount(criteria *Criteria) (*AccountF if afpas != nil && len(*afpas) > 0 { return &((*afpas)[0]), nil } - return nil, fmt.Errorf("no account.fiscal.position.account was found with criteria %v", criteria) + return nil, fmt.Errorf("account.fiscal.position.account was not found with criteria %v", criteria) } // FindAccountFiscalPositionAccounts finds account.fiscal.position.account records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindAccountFiscalPositionAccountId(criteria *Criteria, options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.fiscal.position.account was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.fiscal.position.account was not found with criteria %v and options %v", criteria, options) } diff --git a/account_fiscal_position_account_template.go b/account_fiscal_position_account_template.go index fe326200..0631e84e 100644 --- a/account_fiscal_position_account_template.go +++ b/account_fiscal_position_account_template.go @@ -85,7 +85,7 @@ func (c *Client) FindAccountFiscalPositionAccountTemplate(criteria *Criteria) (* if afpats != nil && len(*afpats) > 0 { return &((*afpats)[0]), nil } - return nil, fmt.Errorf("no account.fiscal.position.account.template was found with criteria %v", criteria) + return nil, fmt.Errorf("account.fiscal.position.account.template was not found with criteria %v", criteria) } // FindAccountFiscalPositionAccountTemplates finds account.fiscal.position.account.template records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindAccountFiscalPositionAccountTemplateId(criteria *Criteria, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.fiscal.position.account.template was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.fiscal.position.account.template was not found with criteria %v and options %v", criteria, options) } diff --git a/account_fiscal_position_tax.go b/account_fiscal_position_tax.go index ea9dec5d..12ea8f85 100644 --- a/account_fiscal_position_tax.go +++ b/account_fiscal_position_tax.go @@ -85,7 +85,7 @@ func (c *Client) FindAccountFiscalPositionTax(criteria *Criteria) (*AccountFisca if afpts != nil && len(*afpts) > 0 { return &((*afpts)[0]), nil } - return nil, fmt.Errorf("no account.fiscal.position.tax was found with criteria %v", criteria) + return nil, fmt.Errorf("account.fiscal.position.tax was not found with criteria %v", criteria) } // FindAccountFiscalPositionTaxs finds account.fiscal.position.tax records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindAccountFiscalPositionTaxId(criteria *Criteria, options *Opt if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.fiscal.position.tax was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.fiscal.position.tax was not found with criteria %v and options %v", criteria, options) } diff --git a/account_fiscal_position_tax_template.go b/account_fiscal_position_tax_template.go index 7db4c603..0c1e7766 100644 --- a/account_fiscal_position_tax_template.go +++ b/account_fiscal_position_tax_template.go @@ -85,7 +85,7 @@ func (c *Client) FindAccountFiscalPositionTaxTemplate(criteria *Criteria) (*Acco if afptts != nil && len(*afptts) > 0 { return &((*afptts)[0]), nil } - return nil, fmt.Errorf("no account.fiscal.position.tax.template was found with criteria %v", criteria) + return nil, fmt.Errorf("account.fiscal.position.tax.template was not found with criteria %v", criteria) } // FindAccountFiscalPositionTaxTemplates finds account.fiscal.position.tax.template records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindAccountFiscalPositionTaxTemplateId(criteria *Criteria, opti if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.fiscal.position.tax.template was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.fiscal.position.tax.template was not found with criteria %v and options %v", criteria, options) } diff --git a/account_fiscal_position_template.go b/account_fiscal_position_template.go index 14ea4b9d..abf96a65 100644 --- a/account_fiscal_position_template.go +++ b/account_fiscal_position_template.go @@ -95,7 +95,7 @@ func (c *Client) FindAccountFiscalPositionTemplate(criteria *Criteria) (*Account if afpts != nil && len(*afpts) > 0 { return &((*afpts)[0]), nil } - return nil, fmt.Errorf("no account.fiscal.position.template was found with criteria %v", criteria) + return nil, fmt.Errorf("account.fiscal.position.template was not found with criteria %v", criteria) } // FindAccountFiscalPositionTemplates finds account.fiscal.position.template records by querying it @@ -127,5 +127,5 @@ func (c *Client) FindAccountFiscalPositionTemplateId(criteria *Criteria, options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.fiscal.position.template was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.fiscal.position.template was not found with criteria %v and options %v", criteria, options) } diff --git a/account_fr_fec.go b/account_fr_fec.go index 21c751bb..7f64de15 100644 --- a/account_fr_fec.go +++ b/account_fr_fec.go @@ -87,7 +87,7 @@ func (c *Client) FindAccountFrFec(criteria *Criteria) (*AccountFrFec, error) { if affs != nil && len(*affs) > 0 { return &((*affs)[0]), nil } - return nil, fmt.Errorf("no account.fr.fec was found with criteria %v", criteria) + return nil, fmt.Errorf("account.fr.fec was not found with criteria %v", criteria) } // FindAccountFrFecs finds account.fr.fec records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindAccountFrFecId(criteria *Criteria, options *Options) (int64 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.fr.fec was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.fr.fec was not found with criteria %v and options %v", criteria, options) } diff --git a/account_full_reconcile.go b/account_full_reconcile.go index c1cf5834..f99764ee 100644 --- a/account_full_reconcile.go +++ b/account_full_reconcile.go @@ -86,7 +86,7 @@ func (c *Client) FindAccountFullReconcile(criteria *Criteria) (*AccountFullRecon if afrs != nil && len(*afrs) > 0 { return &((*afrs)[0]), nil } - return nil, fmt.Errorf("no account.full.reconcile was found with criteria %v", criteria) + return nil, fmt.Errorf("account.full.reconcile was not found with criteria %v", criteria) } // FindAccountFullReconciles finds account.full.reconcile records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindAccountFullReconcileId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.full.reconcile was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.full.reconcile was not found with criteria %v and options %v", criteria, options) } diff --git a/account_group.go b/account_group.go index 7b67f23f..ed3f3ea9 100644 --- a/account_group.go +++ b/account_group.go @@ -87,7 +87,7 @@ func (c *Client) FindAccountGroup(criteria *Criteria) (*AccountGroup, error) { if ags != nil && len(*ags) > 0 { return &((*ags)[0]), nil } - return nil, fmt.Errorf("no account.group was found with criteria %v", criteria) + return nil, fmt.Errorf("account.group was not found with criteria %v", criteria) } // FindAccountGroups finds account.group records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindAccountGroupId(criteria *Criteria, options *Options) (int64 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.group was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.group was not found with criteria %v and options %v", criteria, options) } diff --git a/account_invoice.go b/account_invoice.go index 72f658e0..1123c9ea 100644 --- a/account_invoice.go +++ b/account_invoice.go @@ -161,7 +161,7 @@ func (c *Client) FindAccountInvoice(criteria *Criteria) (*AccountInvoice, error) if ais != nil && len(*ais) > 0 { return &((*ais)[0]), nil } - return nil, fmt.Errorf("no account.invoice was found with criteria %v", criteria) + return nil, fmt.Errorf("account.invoice was not found with criteria %v", criteria) } // FindAccountInvoices finds account.invoice records by querying it @@ -193,5 +193,5 @@ func (c *Client) FindAccountInvoiceId(criteria *Criteria, options *Options) (int if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.invoice was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.invoice was not found with criteria %v and options %v", criteria, options) } diff --git a/account_invoice_confirm.go b/account_invoice_confirm.go index 312b018a..8b25d14c 100644 --- a/account_invoice_confirm.go +++ b/account_invoice_confirm.go @@ -82,7 +82,7 @@ func (c *Client) FindAccountInvoiceConfirm(criteria *Criteria) (*AccountInvoiceC if aics != nil && len(*aics) > 0 { return &((*aics)[0]), nil } - return nil, fmt.Errorf("no account.invoice.confirm was found with criteria %v", criteria) + return nil, fmt.Errorf("account.invoice.confirm was not found with criteria %v", criteria) } // FindAccountInvoiceConfirms finds account.invoice.confirm records by querying it @@ -114,5 +114,5 @@ func (c *Client) FindAccountInvoiceConfirmId(criteria *Criteria, options *Option if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.invoice.confirm was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.invoice.confirm was not found with criteria %v and options %v", criteria, options) } diff --git a/account_invoice_line.go b/account_invoice_line.go index 8fe47b5f..85ada3d3 100644 --- a/account_invoice_line.go +++ b/account_invoice_line.go @@ -109,7 +109,7 @@ func (c *Client) FindAccountInvoiceLine(criteria *Criteria) (*AccountInvoiceLine if ails != nil && len(*ails) > 0 { return &((*ails)[0]), nil } - return nil, fmt.Errorf("no account.invoice.line was found with criteria %v", criteria) + return nil, fmt.Errorf("account.invoice.line was not found with criteria %v", criteria) } // FindAccountInvoiceLines finds account.invoice.line records by querying it @@ -141,5 +141,5 @@ func (c *Client) FindAccountInvoiceLineId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.invoice.line was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.invoice.line was not found with criteria %v and options %v", criteria, options) } diff --git a/account_invoice_refund.go b/account_invoice_refund.go index 41a3287b..bade6fab 100644 --- a/account_invoice_refund.go +++ b/account_invoice_refund.go @@ -87,7 +87,7 @@ func (c *Client) FindAccountInvoiceRefund(criteria *Criteria) (*AccountInvoiceRe if airs != nil && len(*airs) > 0 { return &((*airs)[0]), nil } - return nil, fmt.Errorf("no account.invoice.refund was found with criteria %v", criteria) + return nil, fmt.Errorf("account.invoice.refund was not found with criteria %v", criteria) } // FindAccountInvoiceRefunds finds account.invoice.refund records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindAccountInvoiceRefundId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.invoice.refund was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.invoice.refund was not found with criteria %v and options %v", criteria, options) } diff --git a/account_invoice_report.go b/account_invoice_report.go index acb17de2..2f650c72 100644 --- a/account_invoice_report.go +++ b/account_invoice_report.go @@ -108,7 +108,7 @@ func (c *Client) FindAccountInvoiceReport(criteria *Criteria) (*AccountInvoiceRe if airs != nil && len(*airs) > 0 { return &((*airs)[0]), nil } - return nil, fmt.Errorf("no account.invoice.report was found with criteria %v", criteria) + return nil, fmt.Errorf("account.invoice.report was not found with criteria %v", criteria) } // FindAccountInvoiceReports finds account.invoice.report records by querying it @@ -140,5 +140,5 @@ func (c *Client) FindAccountInvoiceReportId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.invoice.report was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.invoice.report was not found with criteria %v and options %v", criteria, options) } diff --git a/account_invoice_tax.go b/account_invoice_tax.go index 886d60e1..6d5c83ae 100644 --- a/account_invoice_tax.go +++ b/account_invoice_tax.go @@ -95,7 +95,7 @@ func (c *Client) FindAccountInvoiceTax(criteria *Criteria) (*AccountInvoiceTax, if aits != nil && len(*aits) > 0 { return &((*aits)[0]), nil } - return nil, fmt.Errorf("no account.invoice.tax was found with criteria %v", criteria) + return nil, fmt.Errorf("account.invoice.tax was not found with criteria %v", criteria) } // FindAccountInvoiceTaxs finds account.invoice.tax records by querying it @@ -127,5 +127,5 @@ func (c *Client) FindAccountInvoiceTaxId(criteria *Criteria, options *Options) ( if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.invoice.tax was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.invoice.tax was not found with criteria %v and options %v", criteria, options) } diff --git a/account_journal.go b/account_journal.go index 20a1db5a..e270c3b1 100644 --- a/account_journal.go +++ b/account_journal.go @@ -116,7 +116,7 @@ func (c *Client) FindAccountJournal(criteria *Criteria) (*AccountJournal, error) if ajs != nil && len(*ajs) > 0 { return &((*ajs)[0]), nil } - return nil, fmt.Errorf("no account.journal was found with criteria %v", criteria) + return nil, fmt.Errorf("account.journal was not found with criteria %v", criteria) } // FindAccountJournals finds account.journal records by querying it @@ -148,5 +148,5 @@ func (c *Client) FindAccountJournalId(criteria *Criteria, options *Options) (int if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.journal was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.journal was not found with criteria %v and options %v", criteria, options) } diff --git a/account_move.go b/account_move.go index d372a746..2d0526cf 100644 --- a/account_move.go +++ b/account_move.go @@ -97,7 +97,7 @@ func (c *Client) FindAccountMove(criteria *Criteria) (*AccountMove, error) { if ams != nil && len(*ams) > 0 { return &((*ams)[0]), nil } - return nil, fmt.Errorf("no account.move was found with criteria %v", criteria) + return nil, fmt.Errorf("account.move was not found with criteria %v", criteria) } // FindAccountMoves finds account.move records by querying it @@ -129,5 +129,5 @@ func (c *Client) FindAccountMoveId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.move was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.move was not found with criteria %v and options %v", criteria, options) } diff --git a/account_move_line.go b/account_move_line.go index af6ac62a..e98b89a8 100644 --- a/account_move_line.go +++ b/account_move_line.go @@ -126,7 +126,7 @@ func (c *Client) FindAccountMoveLine(criteria *Criteria) (*AccountMoveLine, erro if amls != nil && len(*amls) > 0 { return &((*amls)[0]), nil } - return nil, fmt.Errorf("no account.move.line was found with criteria %v", criteria) + return nil, fmt.Errorf("account.move.line was not found with criteria %v", criteria) } // FindAccountMoveLines finds account.move.line records by querying it @@ -158,5 +158,5 @@ func (c *Client) FindAccountMoveLineId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.move.line was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.move.line was not found with criteria %v and options %v", criteria, options) } diff --git a/account_move_line_reconcile.go b/account_move_line_reconcile.go index 532e94d5..f13c1f4f 100644 --- a/account_move_line_reconcile.go +++ b/account_move_line_reconcile.go @@ -87,7 +87,7 @@ func (c *Client) FindAccountMoveLineReconcile(criteria *Criteria) (*AccountMoveL if amlrs != nil && len(*amlrs) > 0 { return &((*amlrs)[0]), nil } - return nil, fmt.Errorf("no account.move.line.reconcile was found with criteria %v", criteria) + return nil, fmt.Errorf("account.move.line.reconcile was not found with criteria %v", criteria) } // FindAccountMoveLineReconciles finds account.move.line.reconcile records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindAccountMoveLineReconcileId(criteria *Criteria, options *Opt if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.move.line.reconcile was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.move.line.reconcile was not found with criteria %v and options %v", criteria, options) } diff --git a/account_move_line_reconcile_writeoff.go b/account_move_line_reconcile_writeoff.go index 8def9922..cd760c61 100644 --- a/account_move_line_reconcile_writeoff.go +++ b/account_move_line_reconcile_writeoff.go @@ -87,7 +87,7 @@ func (c *Client) FindAccountMoveLineReconcileWriteoff(criteria *Criteria) (*Acco if amlrws != nil && len(*amlrws) > 0 { return &((*amlrws)[0]), nil } - return nil, fmt.Errorf("no account.move.line.reconcile.writeoff was found with criteria %v", criteria) + return nil, fmt.Errorf("account.move.line.reconcile.writeoff was not found with criteria %v", criteria) } // FindAccountMoveLineReconcileWriteoffs finds account.move.line.reconcile.writeoff records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindAccountMoveLineReconcileWriteoffId(criteria *Criteria, opti if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.move.line.reconcile.writeoff was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.move.line.reconcile.writeoff was not found with criteria %v and options %v", criteria, options) } diff --git a/account_move_reversal.go b/account_move_reversal.go index 7ba5de61..d1a69ce3 100644 --- a/account_move_reversal.go +++ b/account_move_reversal.go @@ -84,7 +84,7 @@ func (c *Client) FindAccountMoveReversal(criteria *Criteria) (*AccountMoveRevers if amrs != nil && len(*amrs) > 0 { return &((*amrs)[0]), nil } - return nil, fmt.Errorf("no account.move.reversal was found with criteria %v", criteria) + return nil, fmt.Errorf("account.move.reversal was not found with criteria %v", criteria) } // FindAccountMoveReversals finds account.move.reversal records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindAccountMoveReversalId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.move.reversal was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.move.reversal was not found with criteria %v and options %v", criteria, options) } diff --git a/account_opening.go b/account_opening.go index 712cfa40..d25364f2 100644 --- a/account_opening.go +++ b/account_opening.go @@ -88,7 +88,7 @@ func (c *Client) FindAccountOpening(criteria *Criteria) (*AccountOpening, error) if aos != nil && len(*aos) > 0 { return &((*aos)[0]), nil } - return nil, fmt.Errorf("no account.opening was found with criteria %v", criteria) + return nil, fmt.Errorf("account.opening was not found with criteria %v", criteria) } // FindAccountOpenings finds account.opening records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindAccountOpeningId(criteria *Criteria, options *Options) (int if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.opening was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.opening was not found with criteria %v and options %v", criteria, options) } diff --git a/account_partial_reconcile.go b/account_partial_reconcile.go index 36290a90..5b447d63 100644 --- a/account_partial_reconcile.go +++ b/account_partial_reconcile.go @@ -91,7 +91,7 @@ func (c *Client) FindAccountPartialReconcile(criteria *Criteria) (*AccountPartia if aprs != nil && len(*aprs) > 0 { return &((*aprs)[0]), nil } - return nil, fmt.Errorf("no account.partial.reconcile was found with criteria %v", criteria) + return nil, fmt.Errorf("account.partial.reconcile was not found with criteria %v", criteria) } // FindAccountPartialReconciles finds account.partial.reconcile records by querying it @@ -123,5 +123,5 @@ func (c *Client) FindAccountPartialReconcileId(criteria *Criteria, options *Opti if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.partial.reconcile was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.partial.reconcile was not found with criteria %v and options %v", criteria, options) } diff --git a/account_payment.go b/account_payment.go index 9dd2f54b..0ffa4da4 100644 --- a/account_payment.go +++ b/account_payment.go @@ -121,7 +121,7 @@ func (c *Client) FindAccountPayment(criteria *Criteria) (*AccountPayment, error) if aps != nil && len(*aps) > 0 { return &((*aps)[0]), nil } - return nil, fmt.Errorf("no account.payment was found with criteria %v", criteria) + return nil, fmt.Errorf("account.payment was not found with criteria %v", criteria) } // FindAccountPayments finds account.payment records by querying it @@ -153,5 +153,5 @@ func (c *Client) FindAccountPaymentId(criteria *Criteria, options *Options) (int if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.payment was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.payment was not found with criteria %v and options %v", criteria, options) } diff --git a/account_payment_method.go b/account_payment_method.go index 442adf00..00401e9f 100644 --- a/account_payment_method.go +++ b/account_payment_method.go @@ -85,7 +85,7 @@ func (c *Client) FindAccountPaymentMethod(criteria *Criteria) (*AccountPaymentMe if apms != nil && len(*apms) > 0 { return &((*apms)[0]), nil } - return nil, fmt.Errorf("no account.payment.method was found with criteria %v", criteria) + return nil, fmt.Errorf("account.payment.method was not found with criteria %v", criteria) } // FindAccountPaymentMethods finds account.payment.method records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindAccountPaymentMethodId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.payment.method was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.payment.method was not found with criteria %v and options %v", criteria, options) } diff --git a/account_payment_term.go b/account_payment_term.go index b2bba916..b91068a0 100644 --- a/account_payment_term.go +++ b/account_payment_term.go @@ -88,7 +88,7 @@ func (c *Client) FindAccountPaymentTerm(criteria *Criteria) (*AccountPaymentTerm if apts != nil && len(*apts) > 0 { return &((*apts)[0]), nil } - return nil, fmt.Errorf("no account.payment.term was found with criteria %v", criteria) + return nil, fmt.Errorf("account.payment.term was not found with criteria %v", criteria) } // FindAccountPaymentTerms finds account.payment.term records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindAccountPaymentTermId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.payment.term was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.payment.term was not found with criteria %v and options %v", criteria, options) } diff --git a/account_payment_term_line.go b/account_payment_term_line.go index ea124684..7c8e8cf8 100644 --- a/account_payment_term_line.go +++ b/account_payment_term_line.go @@ -88,7 +88,7 @@ func (c *Client) FindAccountPaymentTermLine(criteria *Criteria) (*AccountPayment if aptls != nil && len(*aptls) > 0 { return &((*aptls)[0]), nil } - return nil, fmt.Errorf("no account.payment.term.line was found with criteria %v", criteria) + return nil, fmt.Errorf("account.payment.term.line was not found with criteria %v", criteria) } // FindAccountPaymentTermLines finds account.payment.term.line records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindAccountPaymentTermLineId(criteria *Criteria, options *Optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.payment.term.line was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.payment.term.line was not found with criteria %v and options %v", criteria, options) } diff --git a/account_print_journal.go b/account_print_journal.go index 60464284..63153af2 100644 --- a/account_print_journal.go +++ b/account_print_journal.go @@ -89,7 +89,7 @@ func (c *Client) FindAccountPrintJournal(criteria *Criteria) (*AccountPrintJourn if apjs != nil && len(*apjs) > 0 { return &((*apjs)[0]), nil } - return nil, fmt.Errorf("no account.print.journal was found with criteria %v", criteria) + return nil, fmt.Errorf("account.print.journal was not found with criteria %v", criteria) } // FindAccountPrintJournals finds account.print.journal records by querying it @@ -121,5 +121,5 @@ func (c *Client) FindAccountPrintJournalId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.print.journal was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.print.journal was not found with criteria %v and options %v", criteria, options) } diff --git a/account_reconcile_model.go b/account_reconcile_model.go index 3e6ed22a..07891d00 100644 --- a/account_reconcile_model.go +++ b/account_reconcile_model.go @@ -100,7 +100,7 @@ func (c *Client) FindAccountReconcileModel(criteria *Criteria) (*AccountReconcil if arms != nil && len(*arms) > 0 { return &((*arms)[0]), nil } - return nil, fmt.Errorf("no account.reconcile.model was found with criteria %v", criteria) + return nil, fmt.Errorf("account.reconcile.model was not found with criteria %v", criteria) } // FindAccountReconcileModels finds account.reconcile.model records by querying it @@ -132,5 +132,5 @@ func (c *Client) FindAccountReconcileModelId(criteria *Criteria, options *Option if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.reconcile.model was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.reconcile.model was not found with criteria %v and options %v", criteria, options) } diff --git a/account_reconcile_model_template.go b/account_reconcile_model_template.go index 67372952..18ddc1d9 100644 --- a/account_reconcile_model_template.go +++ b/account_reconcile_model_template.go @@ -96,7 +96,7 @@ func (c *Client) FindAccountReconcileModelTemplate(criteria *Criteria) (*Account if armts != nil && len(*armts) > 0 { return &((*armts)[0]), nil } - return nil, fmt.Errorf("no account.reconcile.model.template was found with criteria %v", criteria) + return nil, fmt.Errorf("account.reconcile.model.template was not found with criteria %v", criteria) } // FindAccountReconcileModelTemplates finds account.reconcile.model.template records by querying it @@ -128,5 +128,5 @@ func (c *Client) FindAccountReconcileModelTemplateId(criteria *Criteria, options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.reconcile.model.template was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.reconcile.model.template was not found with criteria %v and options %v", criteria, options) } diff --git a/account_register_payments.go b/account_register_payments.go index 6b0937d9..cec44542 100644 --- a/account_register_payments.go +++ b/account_register_payments.go @@ -96,7 +96,7 @@ func (c *Client) FindAccountRegisterPayments(criteria *Criteria) (*AccountRegist if arps != nil && len(*arps) > 0 { return &((*arps)[0]), nil } - return nil, fmt.Errorf("no account.register.payments was found with criteria %v", criteria) + return nil, fmt.Errorf("account.register.payments was not found with criteria %v", criteria) } // FindAccountRegisterPaymentss finds account.register.payments records by querying it @@ -128,5 +128,5 @@ func (c *Client) FindAccountRegisterPaymentsId(criteria *Criteria, options *Opti if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.register.payments was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.register.payments was not found with criteria %v and options %v", criteria, options) } diff --git a/account_report_general_ledger.go b/account_report_general_ledger.go index 45d65577..ca05fc46 100644 --- a/account_report_general_ledger.go +++ b/account_report_general_ledger.go @@ -90,7 +90,7 @@ func (c *Client) FindAccountReportGeneralLedger(criteria *Criteria) (*AccountRep if argls != nil && len(*argls) > 0 { return &((*argls)[0]), nil } - return nil, fmt.Errorf("no account.report.general.ledger was found with criteria %v", criteria) + return nil, fmt.Errorf("account.report.general.ledger was not found with criteria %v", criteria) } // FindAccountReportGeneralLedgers finds account.report.general.ledger records by querying it @@ -122,5 +122,5 @@ func (c *Client) FindAccountReportGeneralLedgerId(criteria *Criteria, options *O if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.report.general.ledger was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.report.general.ledger was not found with criteria %v and options %v", criteria, options) } diff --git a/account_report_partner_ledger.go b/account_report_partner_ledger.go index 6beea421..250555a5 100644 --- a/account_report_partner_ledger.go +++ b/account_report_partner_ledger.go @@ -90,7 +90,7 @@ func (c *Client) FindAccountReportPartnerLedger(criteria *Criteria) (*AccountRep if arpls != nil && len(*arpls) > 0 { return &((*arpls)[0]), nil } - return nil, fmt.Errorf("no account.report.partner.ledger was found with criteria %v", criteria) + return nil, fmt.Errorf("account.report.partner.ledger was not found with criteria %v", criteria) } // FindAccountReportPartnerLedgers finds account.report.partner.ledger records by querying it @@ -122,5 +122,5 @@ func (c *Client) FindAccountReportPartnerLedgerId(criteria *Criteria, options *O if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.report.partner.ledger was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.report.partner.ledger was not found with criteria %v and options %v", criteria, options) } diff --git a/account_tax.go b/account_tax.go index ce460efa..02e8f6d9 100644 --- a/account_tax.go +++ b/account_tax.go @@ -102,7 +102,7 @@ func (c *Client) FindAccountTax(criteria *Criteria) (*AccountTax, error) { if ats != nil && len(*ats) > 0 { return &((*ats)[0]), nil } - return nil, fmt.Errorf("no account.tax was found with criteria %v", criteria) + return nil, fmt.Errorf("account.tax was not found with criteria %v", criteria) } // FindAccountTaxs finds account.tax records by querying it @@ -134,5 +134,5 @@ func (c *Client) FindAccountTaxId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.tax was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.tax was not found with criteria %v and options %v", criteria, options) } diff --git a/account_tax_group.go b/account_tax_group.go index 9a99c838..48103ebb 100644 --- a/account_tax_group.go +++ b/account_tax_group.go @@ -84,7 +84,7 @@ func (c *Client) FindAccountTaxGroup(criteria *Criteria) (*AccountTaxGroup, erro if atgs != nil && len(*atgs) > 0 { return &((*atgs)[0]), nil } - return nil, fmt.Errorf("no account.tax.group was found with criteria %v", criteria) + return nil, fmt.Errorf("account.tax.group was not found with criteria %v", criteria) } // FindAccountTaxGroups finds account.tax.group records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindAccountTaxGroupId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.tax.group was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.tax.group was not found with criteria %v and options %v", criteria, options) } diff --git a/account_tax_report.go b/account_tax_report.go index 094838d1..863e4ed2 100644 --- a/account_tax_report.go +++ b/account_tax_report.go @@ -87,7 +87,7 @@ func (c *Client) FindAccountTaxReport(criteria *Criteria) (*AccountTaxReport, er if atrs != nil && len(*atrs) > 0 { return &((*atrs)[0]), nil } - return nil, fmt.Errorf("no account.tax.report was found with criteria %v", criteria) + return nil, fmt.Errorf("account.tax.report was not found with criteria %v", criteria) } // FindAccountTaxReports finds account.tax.report records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindAccountTaxReportId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.tax.report was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.tax.report was not found with criteria %v and options %v", criteria, options) } diff --git a/account_tax_template.go b/account_tax_template.go index 5cf2dfce..32e22dcb 100644 --- a/account_tax_template.go +++ b/account_tax_template.go @@ -102,7 +102,7 @@ func (c *Client) FindAccountTaxTemplate(criteria *Criteria) (*AccountTaxTemplate if atts != nil && len(*atts) > 0 { return &((*atts)[0]), nil } - return nil, fmt.Errorf("no account.tax.template was found with criteria %v", criteria) + return nil, fmt.Errorf("account.tax.template was not found with criteria %v", criteria) } // FindAccountTaxTemplates finds account.tax.template records by querying it @@ -134,5 +134,5 @@ func (c *Client) FindAccountTaxTemplateId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.tax.template was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.tax.template was not found with criteria %v and options %v", criteria, options) } diff --git a/account_unreconcile.go b/account_unreconcile.go index e6bcaf0d..f05f0c65 100644 --- a/account_unreconcile.go +++ b/account_unreconcile.go @@ -82,7 +82,7 @@ func (c *Client) FindAccountUnreconcile(criteria *Criteria) (*AccountUnreconcile if aus != nil && len(*aus) > 0 { return &((*aus)[0]), nil } - return nil, fmt.Errorf("no account.unreconcile was found with criteria %v", criteria) + return nil, fmt.Errorf("account.unreconcile was not found with criteria %v", criteria) } // FindAccountUnreconciles finds account.unreconcile records by querying it @@ -114,5 +114,5 @@ func (c *Client) FindAccountUnreconcileId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no account.unreconcile was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("account.unreconcile was not found with criteria %v and options %v", criteria, options) } diff --git a/accounting_report.go b/accounting_report.go index 2b63b36c..8775e0a7 100644 --- a/accounting_report.go +++ b/accounting_report.go @@ -94,7 +94,7 @@ func (c *Client) FindAccountingReport(criteria *Criteria) (*AccountingReport, er if ars != nil && len(*ars) > 0 { return &((*ars)[0]), nil } - return nil, fmt.Errorf("no accounting.report was found with criteria %v", criteria) + return nil, fmt.Errorf("accounting.report was not found with criteria %v", criteria) } // FindAccountingReports finds accounting.report records by querying it @@ -126,5 +126,5 @@ func (c *Client) FindAccountingReportId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no accounting.report was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("accounting.report was not found with criteria %v and options %v", criteria, options) } diff --git a/autosales_config.go b/autosales_config.go index 521bb868..bbe11c3e 100644 --- a/autosales_config.go +++ b/autosales_config.go @@ -85,7 +85,7 @@ func (c *Client) FindAutosalesConfig(criteria *Criteria) (*AutosalesConfig, erro if acs != nil && len(*acs) > 0 { return &((*acs)[0]), nil } - return nil, fmt.Errorf("no autosales.config was found with criteria %v", criteria) + return nil, fmt.Errorf("autosales.config was not found with criteria %v", criteria) } // FindAutosalesConfigs finds autosales.config records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindAutosalesConfigId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no autosales.config was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("autosales.config was not found with criteria %v and options %v", criteria, options) } diff --git a/autosales_config_line.go b/autosales_config_line.go index 568e6a50..6f045af9 100644 --- a/autosales_config_line.go +++ b/autosales_config_line.go @@ -87,7 +87,7 @@ func (c *Client) FindAutosalesConfigLine(criteria *Criteria) (*AutosalesConfigLi if acls != nil && len(*acls) > 0 { return &((*acls)[0]), nil } - return nil, fmt.Errorf("no autosales.config.line was found with criteria %v", criteria) + return nil, fmt.Errorf("autosales.config.line was not found with criteria %v", criteria) } // FindAutosalesConfigLines finds autosales.config.line records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindAutosalesConfigLineId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no autosales.config.line was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("autosales.config.line was not found with criteria %v and options %v", criteria, options) } diff --git a/barcode_nomenclature.go b/barcode_nomenclature.go index dd1e2ebe..97d3915a 100644 --- a/barcode_nomenclature.go +++ b/barcode_nomenclature.go @@ -85,7 +85,7 @@ func (c *Client) FindBarcodeNomenclature(criteria *Criteria) (*BarcodeNomenclatu if bns != nil && len(*bns) > 0 { return &((*bns)[0]), nil } - return nil, fmt.Errorf("no barcode.nomenclature was found with criteria %v", criteria) + return nil, fmt.Errorf("barcode.nomenclature was not found with criteria %v", criteria) } // FindBarcodeNomenclatures finds barcode.nomenclature records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindBarcodeNomenclatureId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no barcode.nomenclature was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("barcode.nomenclature was not found with criteria %v and options %v", criteria, options) } diff --git a/barcode_rule.go b/barcode_rule.go index ad2c9898..59dff124 100644 --- a/barcode_rule.go +++ b/barcode_rule.go @@ -89,7 +89,7 @@ func (c *Client) FindBarcodeRule(criteria *Criteria) (*BarcodeRule, error) { if brs != nil && len(*brs) > 0 { return &((*brs)[0]), nil } - return nil, fmt.Errorf("no barcode.rule was found with criteria %v", criteria) + return nil, fmt.Errorf("barcode.rule was not found with criteria %v", criteria) } // FindBarcodeRules finds barcode.rule records by querying it @@ -121,5 +121,5 @@ func (c *Client) FindBarcodeRuleId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no barcode.rule was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("barcode.rule was not found with criteria %v and options %v", criteria, options) } diff --git a/barcodes_barcode_events_mixin.go b/barcodes_barcode_events_mixin.go index b3c14b60..79ce698b 100644 --- a/barcodes_barcode_events_mixin.go +++ b/barcodes_barcode_events_mixin.go @@ -79,7 +79,7 @@ func (c *Client) FindBarcodesBarcodeEventsMixin(criteria *Criteria) (*BarcodesBa if bbs != nil && len(*bbs) > 0 { return &((*bbs)[0]), nil } - return nil, fmt.Errorf("no barcodes.barcode_events_mixin was found with criteria %v", criteria) + return nil, fmt.Errorf("barcodes.barcode_events_mixin was not found with criteria %v", criteria) } // FindBarcodesBarcodeEventsMixins finds barcodes.barcode_events_mixin records by querying it @@ -111,5 +111,5 @@ func (c *Client) FindBarcodesBarcodeEventsMixinId(criteria *Criteria, options *O if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no barcodes.barcode_events_mixin was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("barcodes.barcode_events_mixin was not found with criteria %v and options %v", criteria, options) } diff --git a/base.go b/base.go index b038b672..214f4cb8 100644 --- a/base.go +++ b/base.go @@ -78,7 +78,7 @@ func (c *Client) FindBase(criteria *Criteria) (*Base, error) { if bs != nil && len(*bs) > 0 { return &((*bs)[0]), nil } - return nil, fmt.Errorf("no base was found with criteria %v", criteria) + return nil, fmt.Errorf("base was not found with criteria %v", criteria) } // FindBases finds base records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindBaseId(criteria *Criteria, options *Options) (int64, error) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base was not found with criteria %v and options %v", criteria, options) } diff --git a/base_import_import.go b/base_import_import.go index 352a4b45..4f3b4361 100644 --- a/base_import_import.go +++ b/base_import_import.go @@ -86,7 +86,7 @@ func (c *Client) FindBaseImportImport(criteria *Criteria) (*BaseImportImport, er if bis != nil && len(*bis) > 0 { return &((*bis)[0]), nil } - return nil, fmt.Errorf("no base_import.import was found with criteria %v", criteria) + return nil, fmt.Errorf("base_import.import was not found with criteria %v", criteria) } // FindBaseImportImports finds base_import.import records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindBaseImportImportId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base_import.import was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base_import.import was not found with criteria %v and options %v", criteria, options) } diff --git a/base_import_tests_models_char.go b/base_import_tests_models_char.go index 5941c63d..037a8348 100644 --- a/base_import_tests_models_char.go +++ b/base_import_tests_models_char.go @@ -83,7 +83,7 @@ func (c *Client) FindBaseImportTestsModelsChar(criteria *Criteria) (*BaseImportT if btmcs != nil && len(*btmcs) > 0 { return &((*btmcs)[0]), nil } - return nil, fmt.Errorf("no base_import.tests.models.char was found with criteria %v", criteria) + return nil, fmt.Errorf("base_import.tests.models.char was not found with criteria %v", criteria) } // FindBaseImportTestsModelsChars finds base_import.tests.models.char records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindBaseImportTestsModelsCharId(criteria *Criteria, options *Op if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base_import.tests.models.char was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base_import.tests.models.char was not found with criteria %v and options %v", criteria, options) } diff --git a/base_import_tests_models_char_noreadonly.go b/base_import_tests_models_char_noreadonly.go index 2c1c4e91..ba54675c 100644 --- a/base_import_tests_models_char_noreadonly.go +++ b/base_import_tests_models_char_noreadonly.go @@ -83,7 +83,7 @@ func (c *Client) FindBaseImportTestsModelsCharNoreadonly(criteria *Criteria) (*B if btmcns != nil && len(*btmcns) > 0 { return &((*btmcns)[0]), nil } - return nil, fmt.Errorf("no base_import.tests.models.char.noreadonly was found with criteria %v", criteria) + return nil, fmt.Errorf("base_import.tests.models.char.noreadonly was not found with criteria %v", criteria) } // FindBaseImportTestsModelsCharNoreadonlys finds base_import.tests.models.char.noreadonly records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindBaseImportTestsModelsCharNoreadonlyId(criteria *Criteria, o if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base_import.tests.models.char.noreadonly was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base_import.tests.models.char.noreadonly was not found with criteria %v and options %v", criteria, options) } diff --git a/base_import_tests_models_char_readonly.go b/base_import_tests_models_char_readonly.go index 40346869..2dfc388e 100644 --- a/base_import_tests_models_char_readonly.go +++ b/base_import_tests_models_char_readonly.go @@ -83,7 +83,7 @@ func (c *Client) FindBaseImportTestsModelsCharReadonly(criteria *Criteria) (*Bas if btmcrs != nil && len(*btmcrs) > 0 { return &((*btmcrs)[0]), nil } - return nil, fmt.Errorf("no base_import.tests.models.char.readonly was found with criteria %v", criteria) + return nil, fmt.Errorf("base_import.tests.models.char.readonly was not found with criteria %v", criteria) } // FindBaseImportTestsModelsCharReadonlys finds base_import.tests.models.char.readonly records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindBaseImportTestsModelsCharReadonlyId(criteria *Criteria, opt if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base_import.tests.models.char.readonly was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base_import.tests.models.char.readonly was not found with criteria %v and options %v", criteria, options) } diff --git a/base_import_tests_models_char_required.go b/base_import_tests_models_char_required.go index 66d1496f..27046d76 100644 --- a/base_import_tests_models_char_required.go +++ b/base_import_tests_models_char_required.go @@ -83,7 +83,7 @@ func (c *Client) FindBaseImportTestsModelsCharRequired(criteria *Criteria) (*Bas if btmcrs != nil && len(*btmcrs) > 0 { return &((*btmcrs)[0]), nil } - return nil, fmt.Errorf("no base_import.tests.models.char.required was found with criteria %v", criteria) + return nil, fmt.Errorf("base_import.tests.models.char.required was not found with criteria %v", criteria) } // FindBaseImportTestsModelsCharRequireds finds base_import.tests.models.char.required records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindBaseImportTestsModelsCharRequiredId(criteria *Criteria, opt if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base_import.tests.models.char.required was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base_import.tests.models.char.required was not found with criteria %v and options %v", criteria, options) } diff --git a/base_import_tests_models_char_states.go b/base_import_tests_models_char_states.go index 4eb642aa..6ec2f94a 100644 --- a/base_import_tests_models_char_states.go +++ b/base_import_tests_models_char_states.go @@ -83,7 +83,7 @@ func (c *Client) FindBaseImportTestsModelsCharStates(criteria *Criteria) (*BaseI if btmcss != nil && len(*btmcss) > 0 { return &((*btmcss)[0]), nil } - return nil, fmt.Errorf("no base_import.tests.models.char.states was found with criteria %v", criteria) + return nil, fmt.Errorf("base_import.tests.models.char.states was not found with criteria %v", criteria) } // FindBaseImportTestsModelsCharStatess finds base_import.tests.models.char.states records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindBaseImportTestsModelsCharStatesId(criteria *Criteria, optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base_import.tests.models.char.states was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base_import.tests.models.char.states was not found with criteria %v and options %v", criteria, options) } diff --git a/base_import_tests_models_char_stillreadonly.go b/base_import_tests_models_char_stillreadonly.go index 7f11289b..ba10727b 100644 --- a/base_import_tests_models_char_stillreadonly.go +++ b/base_import_tests_models_char_stillreadonly.go @@ -83,7 +83,7 @@ func (c *Client) FindBaseImportTestsModelsCharStillreadonly(criteria *Criteria) if btmcss != nil && len(*btmcss) > 0 { return &((*btmcss)[0]), nil } - return nil, fmt.Errorf("no base_import.tests.models.char.stillreadonly was found with criteria %v", criteria) + return nil, fmt.Errorf("base_import.tests.models.char.stillreadonly was not found with criteria %v", criteria) } // FindBaseImportTestsModelsCharStillreadonlys finds base_import.tests.models.char.stillreadonly records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindBaseImportTestsModelsCharStillreadonlyId(criteria *Criteria if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base_import.tests.models.char.stillreadonly was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base_import.tests.models.char.stillreadonly was not found with criteria %v and options %v", criteria, options) } diff --git a/base_import_tests_models_m2o.go b/base_import_tests_models_m2o.go index db8ddf20..1f320b8b 100644 --- a/base_import_tests_models_m2o.go +++ b/base_import_tests_models_m2o.go @@ -83,7 +83,7 @@ func (c *Client) FindBaseImportTestsModelsM2O(criteria *Criteria) (*BaseImportTe if btmms != nil && len(*btmms) > 0 { return &((*btmms)[0]), nil } - return nil, fmt.Errorf("no base_import.tests.models.m2o was found with criteria %v", criteria) + return nil, fmt.Errorf("base_import.tests.models.m2o was not found with criteria %v", criteria) } // FindBaseImportTestsModelsM2Os finds base_import.tests.models.m2o records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindBaseImportTestsModelsM2OId(criteria *Criteria, options *Opt if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base_import.tests.models.m2o was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base_import.tests.models.m2o was not found with criteria %v and options %v", criteria, options) } diff --git a/base_import_tests_models_m2o_related.go b/base_import_tests_models_m2o_related.go index 23cdbea9..88de4cc3 100644 --- a/base_import_tests_models_m2o_related.go +++ b/base_import_tests_models_m2o_related.go @@ -83,7 +83,7 @@ func (c *Client) FindBaseImportTestsModelsM2ORelated(criteria *Criteria) (*BaseI if btmmrs != nil && len(*btmmrs) > 0 { return &((*btmmrs)[0]), nil } - return nil, fmt.Errorf("no base_import.tests.models.m2o.related was found with criteria %v", criteria) + return nil, fmt.Errorf("base_import.tests.models.m2o.related was not found with criteria %v", criteria) } // FindBaseImportTestsModelsM2ORelateds finds base_import.tests.models.m2o.related records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindBaseImportTestsModelsM2ORelatedId(criteria *Criteria, optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base_import.tests.models.m2o.related was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base_import.tests.models.m2o.related was not found with criteria %v and options %v", criteria, options) } diff --git a/base_import_tests_models_m2o_required.go b/base_import_tests_models_m2o_required.go index 45b8ddb4..3fd51b0a 100644 --- a/base_import_tests_models_m2o_required.go +++ b/base_import_tests_models_m2o_required.go @@ -83,7 +83,7 @@ func (c *Client) FindBaseImportTestsModelsM2ORequired(criteria *Criteria) (*Base if btmmrs != nil && len(*btmmrs) > 0 { return &((*btmmrs)[0]), nil } - return nil, fmt.Errorf("no base_import.tests.models.m2o.required was found with criteria %v", criteria) + return nil, fmt.Errorf("base_import.tests.models.m2o.required was not found with criteria %v", criteria) } // FindBaseImportTestsModelsM2ORequireds finds base_import.tests.models.m2o.required records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindBaseImportTestsModelsM2ORequiredId(criteria *Criteria, opti if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base_import.tests.models.m2o.required was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base_import.tests.models.m2o.required was not found with criteria %v and options %v", criteria, options) } diff --git a/base_import_tests_models_m2o_required_related.go b/base_import_tests_models_m2o_required_related.go index d3653c86..73408677 100644 --- a/base_import_tests_models_m2o_required_related.go +++ b/base_import_tests_models_m2o_required_related.go @@ -83,7 +83,7 @@ func (c *Client) FindBaseImportTestsModelsM2ORequiredRelated(criteria *Criteria) if btmmrrs != nil && len(*btmmrrs) > 0 { return &((*btmmrrs)[0]), nil } - return nil, fmt.Errorf("no base_import.tests.models.m2o.required.related was found with criteria %v", criteria) + return nil, fmt.Errorf("base_import.tests.models.m2o.required.related was not found with criteria %v", criteria) } // FindBaseImportTestsModelsM2ORequiredRelateds finds base_import.tests.models.m2o.required.related records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindBaseImportTestsModelsM2ORequiredRelatedId(criteria *Criteri if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base_import.tests.models.m2o.required.related was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base_import.tests.models.m2o.required.related was not found with criteria %v and options %v", criteria, options) } diff --git a/base_import_tests_models_o2m.go b/base_import_tests_models_o2m.go index d781147a..d1a6ec5b 100644 --- a/base_import_tests_models_o2m.go +++ b/base_import_tests_models_o2m.go @@ -83,7 +83,7 @@ func (c *Client) FindBaseImportTestsModelsO2M(criteria *Criteria) (*BaseImportTe if btmos != nil && len(*btmos) > 0 { return &((*btmos)[0]), nil } - return nil, fmt.Errorf("no base_import.tests.models.o2m was found with criteria %v", criteria) + return nil, fmt.Errorf("base_import.tests.models.o2m was not found with criteria %v", criteria) } // FindBaseImportTestsModelsO2Ms finds base_import.tests.models.o2m records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindBaseImportTestsModelsO2MId(criteria *Criteria, options *Opt if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base_import.tests.models.o2m was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base_import.tests.models.o2m was not found with criteria %v and options %v", criteria, options) } diff --git a/base_import_tests_models_o2m_child.go b/base_import_tests_models_o2m_child.go index fc66fafc..0c6c14d9 100644 --- a/base_import_tests_models_o2m_child.go +++ b/base_import_tests_models_o2m_child.go @@ -84,7 +84,7 @@ func (c *Client) FindBaseImportTestsModelsO2MChild(criteria *Criteria) (*BaseImp if btmocs != nil && len(*btmocs) > 0 { return &((*btmocs)[0]), nil } - return nil, fmt.Errorf("no base_import.tests.models.o2m.child was found with criteria %v", criteria) + return nil, fmt.Errorf("base_import.tests.models.o2m.child was not found with criteria %v", criteria) } // FindBaseImportTestsModelsO2MChilds finds base_import.tests.models.o2m.child records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindBaseImportTestsModelsO2MChildId(criteria *Criteria, options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base_import.tests.models.o2m.child was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base_import.tests.models.o2m.child was not found with criteria %v and options %v", criteria, options) } diff --git a/base_import_tests_models_preview.go b/base_import_tests_models_preview.go index e622076f..d8d3342c 100644 --- a/base_import_tests_models_preview.go +++ b/base_import_tests_models_preview.go @@ -85,7 +85,7 @@ func (c *Client) FindBaseImportTestsModelsPreview(criteria *Criteria) (*BaseImpo if btmps != nil && len(*btmps) > 0 { return &((*btmps)[0]), nil } - return nil, fmt.Errorf("no base_import.tests.models.preview was found with criteria %v", criteria) + return nil, fmt.Errorf("base_import.tests.models.preview was not found with criteria %v", criteria) } // FindBaseImportTestsModelsPreviews finds base_import.tests.models.preview records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindBaseImportTestsModelsPreviewId(criteria *Criteria, options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base_import.tests.models.preview was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base_import.tests.models.preview was not found with criteria %v and options %v", criteria, options) } diff --git a/base_language_export.go b/base_language_export.go index 9fcbc93e..e4bb22cd 100644 --- a/base_language_export.go +++ b/base_language_export.go @@ -88,7 +88,7 @@ func (c *Client) FindBaseLanguageExport(criteria *Criteria) (*BaseLanguageExport if bles != nil && len(*bles) > 0 { return &((*bles)[0]), nil } - return nil, fmt.Errorf("no base.language.export was found with criteria %v", criteria) + return nil, fmt.Errorf("base.language.export was not found with criteria %v", criteria) } // FindBaseLanguageExports finds base.language.export records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindBaseLanguageExportId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base.language.export was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base.language.export was not found with criteria %v and options %v", criteria, options) } diff --git a/base_language_import.go b/base_language_import.go index d6dac717..3232b853 100644 --- a/base_language_import.go +++ b/base_language_import.go @@ -87,7 +87,7 @@ func (c *Client) FindBaseLanguageImport(criteria *Criteria) (*BaseLanguageImport if blis != nil && len(*blis) > 0 { return &((*blis)[0]), nil } - return nil, fmt.Errorf("no base.language.import was found with criteria %v", criteria) + return nil, fmt.Errorf("base.language.import was not found with criteria %v", criteria) } // FindBaseLanguageImports finds base.language.import records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindBaseLanguageImportId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base.language.import was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base.language.import was not found with criteria %v and options %v", criteria, options) } diff --git a/base_language_install.go b/base_language_install.go index 05eee4b1..5e2ba0f0 100644 --- a/base_language_install.go +++ b/base_language_install.go @@ -85,7 +85,7 @@ func (c *Client) FindBaseLanguageInstall(criteria *Criteria) (*BaseLanguageInsta if blis != nil && len(*blis) > 0 { return &((*blis)[0]), nil } - return nil, fmt.Errorf("no base.language.install was found with criteria %v", criteria) + return nil, fmt.Errorf("base.language.install was not found with criteria %v", criteria) } // FindBaseLanguageInstalls finds base.language.install records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindBaseLanguageInstallId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base.language.install was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base.language.install was not found with criteria %v and options %v", criteria, options) } diff --git a/base_module_uninstall.go b/base_module_uninstall.go index a611f69c..361e570c 100644 --- a/base_module_uninstall.go +++ b/base_module_uninstall.go @@ -86,7 +86,7 @@ func (c *Client) FindBaseModuleUninstall(criteria *Criteria) (*BaseModuleUninsta if bmus != nil && len(*bmus) > 0 { return &((*bmus)[0]), nil } - return nil, fmt.Errorf("no base.module.uninstall was found with criteria %v", criteria) + return nil, fmt.Errorf("base.module.uninstall was not found with criteria %v", criteria) } // FindBaseModuleUninstalls finds base.module.uninstall records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindBaseModuleUninstallId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base.module.uninstall was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base.module.uninstall was not found with criteria %v and options %v", criteria, options) } diff --git a/base_module_update.go b/base_module_update.go index 06b24ac9..cc5b52bb 100644 --- a/base_module_update.go +++ b/base_module_update.go @@ -85,7 +85,7 @@ func (c *Client) FindBaseModuleUpdate(criteria *Criteria) (*BaseModuleUpdate, er if bmus != nil && len(*bmus) > 0 { return &((*bmus)[0]), nil } - return nil, fmt.Errorf("no base.module.update was found with criteria %v", criteria) + return nil, fmt.Errorf("base.module.update was not found with criteria %v", criteria) } // FindBaseModuleUpdates finds base.module.update records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindBaseModuleUpdateId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base.module.update was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base.module.update was not found with criteria %v and options %v", criteria, options) } diff --git a/base_module_upgrade.go b/base_module_upgrade.go index 34139ed1..2fefbc17 100644 --- a/base_module_upgrade.go +++ b/base_module_upgrade.go @@ -83,7 +83,7 @@ func (c *Client) FindBaseModuleUpgrade(criteria *Criteria) (*BaseModuleUpgrade, if bmus != nil && len(*bmus) > 0 { return &((*bmus)[0]), nil } - return nil, fmt.Errorf("no base.module.upgrade was found with criteria %v", criteria) + return nil, fmt.Errorf("base.module.upgrade was not found with criteria %v", criteria) } // FindBaseModuleUpgrades finds base.module.upgrade records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindBaseModuleUpgradeId(criteria *Criteria, options *Options) ( if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base.module.upgrade was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base.module.upgrade was not found with criteria %v and options %v", criteria, options) } diff --git a/base_partner_merge_automatic_wizard.go b/base_partner_merge_automatic_wizard.go index e01d542e..bc0a3e17 100644 --- a/base_partner_merge_automatic_wizard.go +++ b/base_partner_merge_automatic_wizard.go @@ -96,7 +96,7 @@ func (c *Client) FindBasePartnerMergeAutomaticWizard(criteria *Criteria) (*BaseP if bpmaws != nil && len(*bpmaws) > 0 { return &((*bpmaws)[0]), nil } - return nil, fmt.Errorf("no base.partner.merge.automatic.wizard was found with criteria %v", criteria) + return nil, fmt.Errorf("base.partner.merge.automatic.wizard was not found with criteria %v", criteria) } // FindBasePartnerMergeAutomaticWizards finds base.partner.merge.automatic.wizard records by querying it @@ -128,5 +128,5 @@ func (c *Client) FindBasePartnerMergeAutomaticWizardId(criteria *Criteria, optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base.partner.merge.automatic.wizard was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base.partner.merge.automatic.wizard was not found with criteria %v and options %v", criteria, options) } diff --git a/base_partner_merge_line.go b/base_partner_merge_line.go index ceaeb95b..2e62924a 100644 --- a/base_partner_merge_line.go +++ b/base_partner_merge_line.go @@ -85,7 +85,7 @@ func (c *Client) FindBasePartnerMergeLine(criteria *Criteria) (*BasePartnerMerge if bpmls != nil && len(*bpmls) > 0 { return &((*bpmls)[0]), nil } - return nil, fmt.Errorf("no base.partner.merge.line was found with criteria %v", criteria) + return nil, fmt.Errorf("base.partner.merge.line was not found with criteria %v", criteria) } // FindBasePartnerMergeLines finds base.partner.merge.line records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindBasePartnerMergeLineId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base.partner.merge.line was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base.partner.merge.line was not found with criteria %v and options %v", criteria, options) } diff --git a/base_update_translations.go b/base_update_translations.go index 1069024d..897bad72 100644 --- a/base_update_translations.go +++ b/base_update_translations.go @@ -83,7 +83,7 @@ func (c *Client) FindBaseUpdateTranslations(criteria *Criteria) (*BaseUpdateTran if buts != nil && len(*buts) > 0 { return &((*buts)[0]), nil } - return nil, fmt.Errorf("no base.update.translations was found with criteria %v", criteria) + return nil, fmt.Errorf("base.update.translations was not found with criteria %v", criteria) } // FindBaseUpdateTranslationss finds base.update.translations records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindBaseUpdateTranslationsId(criteria *Criteria, options *Optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no base.update.translations was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("base.update.translations was not found with criteria %v and options %v", criteria, options) } diff --git a/board_board.go b/board_board.go index 33138cb1..5d16a0bf 100644 --- a/board_board.go +++ b/board_board.go @@ -78,7 +78,7 @@ func (c *Client) FindBoardBoard(criteria *Criteria) (*BoardBoard, error) { if bbs != nil && len(*bbs) > 0 { return &((*bbs)[0]), nil } - return nil, fmt.Errorf("no board.board was found with criteria %v", criteria) + return nil, fmt.Errorf("board.board was not found with criteria %v", criteria) } // FindBoardBoards finds board.board records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindBoardBoardId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no board.board was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("board.board was not found with criteria %v and options %v", criteria, options) } diff --git a/bus_bus.go b/bus_bus.go index e6234b4c..96e37f58 100644 --- a/bus_bus.go +++ b/bus_bus.go @@ -84,7 +84,7 @@ func (c *Client) FindBusBus(criteria *Criteria) (*BusBus, error) { if bbs != nil && len(*bbs) > 0 { return &((*bbs)[0]), nil } - return nil, fmt.Errorf("no bus.bus was found with criteria %v", criteria) + return nil, fmt.Errorf("bus.bus was not found with criteria %v", criteria) } // FindBusBuss finds bus.bus records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindBusBusId(criteria *Criteria, options *Options) (int64, erro if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no bus.bus was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("bus.bus was not found with criteria %v and options %v", criteria, options) } diff --git a/bus_presence.go b/bus_presence.go index be87aa6e..e57344e3 100644 --- a/bus_presence.go +++ b/bus_presence.go @@ -82,7 +82,7 @@ func (c *Client) FindBusPresence(criteria *Criteria) (*BusPresence, error) { if bps != nil && len(*bps) > 0 { return &((*bps)[0]), nil } - return nil, fmt.Errorf("no bus.presence was found with criteria %v", criteria) + return nil, fmt.Errorf("bus.presence was not found with criteria %v", criteria) } // FindBusPresences finds bus.presence records by querying it @@ -114,5 +114,5 @@ func (c *Client) FindBusPresenceId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no bus.presence was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("bus.presence was not found with criteria %v and options %v", criteria, options) } diff --git a/calendar_alarm.go b/calendar_alarm.go index f14da386..694f1aa9 100644 --- a/calendar_alarm.go +++ b/calendar_alarm.go @@ -87,7 +87,7 @@ func (c *Client) FindCalendarAlarm(criteria *Criteria) (*CalendarAlarm, error) { if cas != nil && len(*cas) > 0 { return &((*cas)[0]), nil } - return nil, fmt.Errorf("no calendar.alarm was found with criteria %v", criteria) + return nil, fmt.Errorf("calendar.alarm was not found with criteria %v", criteria) } // FindCalendarAlarms finds calendar.alarm records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindCalendarAlarmId(criteria *Criteria, options *Options) (int6 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no calendar.alarm was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("calendar.alarm was not found with criteria %v and options %v", criteria, options) } diff --git a/calendar_alarm_manager.go b/calendar_alarm_manager.go index 2b6bd36a..b3cb9625 100644 --- a/calendar_alarm_manager.go +++ b/calendar_alarm_manager.go @@ -78,7 +78,7 @@ func (c *Client) FindCalendarAlarmManager(criteria *Criteria) (*CalendarAlarmMan if cas != nil && len(*cas) > 0 { return &((*cas)[0]), nil } - return nil, fmt.Errorf("no calendar.alarm_manager was found with criteria %v", criteria) + return nil, fmt.Errorf("calendar.alarm_manager was not found with criteria %v", criteria) } // FindCalendarAlarmManagers finds calendar.alarm_manager records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindCalendarAlarmManagerId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no calendar.alarm_manager was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("calendar.alarm_manager was not found with criteria %v and options %v", criteria, options) } diff --git a/calendar_attendee.go b/calendar_attendee.go index 6da3d0a0..f080e8d5 100644 --- a/calendar_attendee.go +++ b/calendar_attendee.go @@ -89,7 +89,7 @@ func (c *Client) FindCalendarAttendee(criteria *Criteria) (*CalendarAttendee, er if cas != nil && len(*cas) > 0 { return &((*cas)[0]), nil } - return nil, fmt.Errorf("no calendar.attendee was found with criteria %v", criteria) + return nil, fmt.Errorf("calendar.attendee was not found with criteria %v", criteria) } // FindCalendarAttendees finds calendar.attendee records by querying it @@ -121,5 +121,5 @@ func (c *Client) FindCalendarAttendeeId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no calendar.attendee was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("calendar.attendee was not found with criteria %v and options %v", criteria, options) } diff --git a/calendar_contacts.go b/calendar_contacts.go index 7a42c54b..fab6905c 100644 --- a/calendar_contacts.go +++ b/calendar_contacts.go @@ -85,7 +85,7 @@ func (c *Client) FindCalendarContacts(criteria *Criteria) (*CalendarContacts, er if ccs != nil && len(*ccs) > 0 { return &((*ccs)[0]), nil } - return nil, fmt.Errorf("no calendar.contacts was found with criteria %v", criteria) + return nil, fmt.Errorf("calendar.contacts was not found with criteria %v", criteria) } // FindCalendarContactss finds calendar.contacts records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindCalendarContactsId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no calendar.contacts was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("calendar.contacts was not found with criteria %v and options %v", criteria, options) } diff --git a/calendar_event.go b/calendar_event.go index 02d897ad..bb082e07 100644 --- a/calendar_event.go +++ b/calendar_event.go @@ -144,7 +144,7 @@ func (c *Client) FindCalendarEvent(criteria *Criteria) (*CalendarEvent, error) { if ces != nil && len(*ces) > 0 { return &((*ces)[0]), nil } - return nil, fmt.Errorf("no calendar.event was found with criteria %v", criteria) + return nil, fmt.Errorf("calendar.event was not found with criteria %v", criteria) } // FindCalendarEvents finds calendar.event records by querying it @@ -176,5 +176,5 @@ func (c *Client) FindCalendarEventId(criteria *Criteria, options *Options) (int6 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no calendar.event was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("calendar.event was not found with criteria %v and options %v", criteria, options) } diff --git a/calendar_event_type.go b/calendar_event_type.go index aaa029ec..9da50280 100644 --- a/calendar_event_type.go +++ b/calendar_event_type.go @@ -83,7 +83,7 @@ func (c *Client) FindCalendarEventType(criteria *Criteria) (*CalendarEventType, if cets != nil && len(*cets) > 0 { return &((*cets)[0]), nil } - return nil, fmt.Errorf("no calendar.event.type was found with criteria %v", criteria) + return nil, fmt.Errorf("calendar.event.type was not found with criteria %v", criteria) } // FindCalendarEventTypes finds calendar.event.type records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindCalendarEventTypeId(criteria *Criteria, options *Options) ( if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no calendar.event.type was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("calendar.event.type was not found with criteria %v and options %v", criteria, options) } diff --git a/cash_box_in.go b/cash_box_in.go index ba31a96d..3be24ac1 100644 --- a/cash_box_in.go +++ b/cash_box_in.go @@ -85,7 +85,7 @@ func (c *Client) FindCashBoxIn(criteria *Criteria) (*CashBoxIn, error) { if cbis != nil && len(*cbis) > 0 { return &((*cbis)[0]), nil } - return nil, fmt.Errorf("no cash.box.in was found with criteria %v", criteria) + return nil, fmt.Errorf("cash.box.in was not found with criteria %v", criteria) } // FindCashBoxIns finds cash.box.in records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindCashBoxInId(criteria *Criteria, options *Options) (int64, e if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no cash.box.in was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("cash.box.in was not found with criteria %v and options %v", criteria, options) } diff --git a/cash_box_out.go b/cash_box_out.go index a5167c3f..9d0b200a 100644 --- a/cash_box_out.go +++ b/cash_box_out.go @@ -84,7 +84,7 @@ func (c *Client) FindCashBoxOut(criteria *Criteria) (*CashBoxOut, error) { if cbos != nil && len(*cbos) > 0 { return &((*cbos)[0]), nil } - return nil, fmt.Errorf("no cash.box.out was found with criteria %v", criteria) + return nil, fmt.Errorf("cash.box.out was not found with criteria %v", criteria) } // FindCashBoxOuts finds cash.box.out records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindCashBoxOutId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no cash.box.out was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("cash.box.out was not found with criteria %v and options %v", criteria, options) } diff --git a/change_password_user.go b/change_password_user.go index 764a4999..544cefc0 100644 --- a/change_password_user.go +++ b/change_password_user.go @@ -86,7 +86,7 @@ func (c *Client) FindChangePasswordUser(criteria *Criteria) (*ChangePasswordUser if cpus != nil && len(*cpus) > 0 { return &((*cpus)[0]), nil } - return nil, fmt.Errorf("no change.password.user was found with criteria %v", criteria) + return nil, fmt.Errorf("change.password.user was not found with criteria %v", criteria) } // FindChangePasswordUsers finds change.password.user records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindChangePasswordUserId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no change.password.user was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("change.password.user was not found with criteria %v and options %v", criteria, options) } diff --git a/change_password_wizard.go b/change_password_wizard.go index 22408e37..20010fd7 100644 --- a/change_password_wizard.go +++ b/change_password_wizard.go @@ -83,7 +83,7 @@ func (c *Client) FindChangePasswordWizard(criteria *Criteria) (*ChangePasswordWi if cpws != nil && len(*cpws) > 0 { return &((*cpws)[0]), nil } - return nil, fmt.Errorf("no change.password.wizard was found with criteria %v", criteria) + return nil, fmt.Errorf("change.password.wizard was not found with criteria %v", criteria) } // FindChangePasswordWizards finds change.password.wizard records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindChangePasswordWizardId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no change.password.wizard was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("change.password.wizard was not found with criteria %v and options %v", criteria, options) } diff --git a/crm_activity_report.go b/crm_activity_report.go index 36a0aa86..d92062b9 100644 --- a/crm_activity_report.go +++ b/crm_activity_report.go @@ -93,7 +93,7 @@ func (c *Client) FindCrmActivityReport(criteria *Criteria) (*CrmActivityReport, if cars != nil && len(*cars) > 0 { return &((*cars)[0]), nil } - return nil, fmt.Errorf("no crm.activity.report was found with criteria %v", criteria) + return nil, fmt.Errorf("crm.activity.report was not found with criteria %v", criteria) } // FindCrmActivityReports finds crm.activity.report records by querying it @@ -125,5 +125,5 @@ func (c *Client) FindCrmActivityReportId(criteria *Criteria, options *Options) ( if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no crm.activity.report was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("crm.activity.report was not found with criteria %v and options %v", criteria, options) } diff --git a/crm_lead.go b/crm_lead.go index f49da5eb..1672fa81 100644 --- a/crm_lead.go +++ b/crm_lead.go @@ -154,7 +154,7 @@ func (c *Client) FindCrmLead(criteria *Criteria) (*CrmLead, error) { if cls != nil && len(*cls) > 0 { return &((*cls)[0]), nil } - return nil, fmt.Errorf("no crm.lead was found with criteria %v", criteria) + return nil, fmt.Errorf("crm.lead was not found with criteria %v", criteria) } // FindCrmLeads finds crm.lead records by querying it @@ -186,5 +186,5 @@ func (c *Client) FindCrmLeadId(criteria *Criteria, options *Options) (int64, err if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no crm.lead was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("crm.lead was not found with criteria %v and options %v", criteria, options) } diff --git a/crm_lead2opportunity_partner.go b/crm_lead2opportunity_partner.go index 906757ea..69b7c161 100644 --- a/crm_lead2opportunity_partner.go +++ b/crm_lead2opportunity_partner.go @@ -88,7 +88,7 @@ func (c *Client) FindCrmLead2OpportunityPartner(criteria *Criteria) (*CrmLead2Op if clps != nil && len(*clps) > 0 { return &((*clps)[0]), nil } - return nil, fmt.Errorf("no crm.lead2opportunity.partner was found with criteria %v", criteria) + return nil, fmt.Errorf("crm.lead2opportunity.partner was not found with criteria %v", criteria) } // FindCrmLead2OpportunityPartners finds crm.lead2opportunity.partner records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindCrmLead2OpportunityPartnerId(criteria *Criteria, options *O if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no crm.lead2opportunity.partner was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("crm.lead2opportunity.partner was not found with criteria %v and options %v", criteria, options) } diff --git a/crm_lead2opportunity_partner_mass.go b/crm_lead2opportunity_partner_mass.go index e0af3098..58485474 100644 --- a/crm_lead2opportunity_partner_mass.go +++ b/crm_lead2opportunity_partner_mass.go @@ -91,7 +91,7 @@ func (c *Client) FindCrmLead2OpportunityPartnerMass(criteria *Criteria) (*CrmLea if clpms != nil && len(*clpms) > 0 { return &((*clpms)[0]), nil } - return nil, fmt.Errorf("no crm.lead2opportunity.partner.mass was found with criteria %v", criteria) + return nil, fmt.Errorf("crm.lead2opportunity.partner.mass was not found with criteria %v", criteria) } // FindCrmLead2OpportunityPartnerMasss finds crm.lead2opportunity.partner.mass records by querying it @@ -123,5 +123,5 @@ func (c *Client) FindCrmLead2OpportunityPartnerMassId(criteria *Criteria, option if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no crm.lead2opportunity.partner.mass was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("crm.lead2opportunity.partner.mass was not found with criteria %v and options %v", criteria, options) } diff --git a/crm_lead_lost.go b/crm_lead_lost.go index e8e48d86..5ead8d4f 100644 --- a/crm_lead_lost.go +++ b/crm_lead_lost.go @@ -83,7 +83,7 @@ func (c *Client) FindCrmLeadLost(criteria *Criteria) (*CrmLeadLost, error) { if clls != nil && len(*clls) > 0 { return &((*clls)[0]), nil } - return nil, fmt.Errorf("no crm.lead.lost was found with criteria %v", criteria) + return nil, fmt.Errorf("crm.lead.lost was not found with criteria %v", criteria) } // FindCrmLeadLosts finds crm.lead.lost records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindCrmLeadLostId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no crm.lead.lost was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("crm.lead.lost was not found with criteria %v and options %v", criteria, options) } diff --git a/crm_lead_tag.go b/crm_lead_tag.go index 64dbe258..a9ec9fdf 100644 --- a/crm_lead_tag.go +++ b/crm_lead_tag.go @@ -84,7 +84,7 @@ func (c *Client) FindCrmLeadTag(criteria *Criteria) (*CrmLeadTag, error) { if clts != nil && len(*clts) > 0 { return &((*clts)[0]), nil } - return nil, fmt.Errorf("no crm.lead.tag was found with criteria %v", criteria) + return nil, fmt.Errorf("crm.lead.tag was not found with criteria %v", criteria) } // FindCrmLeadTags finds crm.lead.tag records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindCrmLeadTagId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no crm.lead.tag was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("crm.lead.tag was not found with criteria %v and options %v", criteria, options) } diff --git a/crm_lost_reason.go b/crm_lost_reason.go index efeda115..e46dbce3 100644 --- a/crm_lost_reason.go +++ b/crm_lost_reason.go @@ -84,7 +84,7 @@ func (c *Client) FindCrmLostReason(criteria *Criteria) (*CrmLostReason, error) { if clrs != nil && len(*clrs) > 0 { return &((*clrs)[0]), nil } - return nil, fmt.Errorf("no crm.lost.reason was found with criteria %v", criteria) + return nil, fmt.Errorf("crm.lost.reason was not found with criteria %v", criteria) } // FindCrmLostReasons finds crm.lost.reason records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindCrmLostReasonId(criteria *Criteria, options *Options) (int6 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no crm.lost.reason was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("crm.lost.reason was not found with criteria %v and options %v", criteria, options) } diff --git a/crm_merge_opportunity.go b/crm_merge_opportunity.go index a4f9db73..109c24ff 100644 --- a/crm_merge_opportunity.go +++ b/crm_merge_opportunity.go @@ -85,7 +85,7 @@ func (c *Client) FindCrmMergeOpportunity(criteria *Criteria) (*CrmMergeOpportuni if cmos != nil && len(*cmos) > 0 { return &((*cmos)[0]), nil } - return nil, fmt.Errorf("no crm.merge.opportunity was found with criteria %v", criteria) + return nil, fmt.Errorf("crm.merge.opportunity was not found with criteria %v", criteria) } // FindCrmMergeOpportunitys finds crm.merge.opportunity records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindCrmMergeOpportunityId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no crm.merge.opportunity was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("crm.merge.opportunity was not found with criteria %v and options %v", criteria, options) } diff --git a/crm_opportunity_report.go b/crm_opportunity_report.go index 6a7f2f85..83163e22 100644 --- a/crm_opportunity_report.go +++ b/crm_opportunity_report.go @@ -106,7 +106,7 @@ func (c *Client) FindCrmOpportunityReport(criteria *Criteria) (*CrmOpportunityRe if cors != nil && len(*cors) > 0 { return &((*cors)[0]), nil } - return nil, fmt.Errorf("no crm.opportunity.report was found with criteria %v", criteria) + return nil, fmt.Errorf("crm.opportunity.report was not found with criteria %v", criteria) } // FindCrmOpportunityReports finds crm.opportunity.report records by querying it @@ -138,5 +138,5 @@ func (c *Client) FindCrmOpportunityReportId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no crm.opportunity.report was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("crm.opportunity.report was not found with criteria %v and options %v", criteria, options) } diff --git a/crm_partner_binding.go b/crm_partner_binding.go index 844af941..e95ee495 100644 --- a/crm_partner_binding.go +++ b/crm_partner_binding.go @@ -84,7 +84,7 @@ func (c *Client) FindCrmPartnerBinding(criteria *Criteria) (*CrmPartnerBinding, if cpbs != nil && len(*cpbs) > 0 { return &((*cpbs)[0]), nil } - return nil, fmt.Errorf("no crm.partner.binding was found with criteria %v", criteria) + return nil, fmt.Errorf("crm.partner.binding was not found with criteria %v", criteria) } // FindCrmPartnerBindings finds crm.partner.binding records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindCrmPartnerBindingId(criteria *Criteria, options *Options) ( if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no crm.partner.binding was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("crm.partner.binding was not found with criteria %v and options %v", criteria, options) } diff --git a/crm_stage.go b/crm_stage.go index 8fbbcd5b..3da92bf6 100644 --- a/crm_stage.go +++ b/crm_stage.go @@ -90,7 +90,7 @@ func (c *Client) FindCrmStage(criteria *Criteria) (*CrmStage, error) { if css != nil && len(*css) > 0 { return &((*css)[0]), nil } - return nil, fmt.Errorf("no crm.stage was found with criteria %v", criteria) + return nil, fmt.Errorf("crm.stage was not found with criteria %v", criteria) } // FindCrmStages finds crm.stage records by querying it @@ -122,5 +122,5 @@ func (c *Client) FindCrmStageId(criteria *Criteria, options *Options) (int64, er if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no crm.stage was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("crm.stage was not found with criteria %v and options %v", criteria, options) } diff --git a/crm_team.go b/crm_team.go index e395f28a..e113b57f 100644 --- a/crm_team.go +++ b/crm_team.go @@ -134,7 +134,7 @@ func (c *Client) FindCrmTeam(criteria *Criteria) (*CrmTeam, error) { if cts != nil && len(*cts) > 0 { return &((*cts)[0]), nil } - return nil, fmt.Errorf("no crm.team was found with criteria %v", criteria) + return nil, fmt.Errorf("crm.team was not found with criteria %v", criteria) } // FindCrmTeams finds crm.team records by querying it @@ -166,5 +166,5 @@ func (c *Client) FindCrmTeamId(criteria *Criteria, options *Options) (int64, err if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no crm.team was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("crm.team was not found with criteria %v and options %v", criteria, options) } diff --git a/decimal_precision.go b/decimal_precision.go index 8abc0d20..4edab69f 100644 --- a/decimal_precision.go +++ b/decimal_precision.go @@ -84,7 +84,7 @@ func (c *Client) FindDecimalPrecision(criteria *Criteria) (*DecimalPrecision, er if dps != nil && len(*dps) > 0 { return &((*dps)[0]), nil } - return nil, fmt.Errorf("no decimal.precision was found with criteria %v", criteria) + return nil, fmt.Errorf("decimal.precision was not found with criteria %v", criteria) } // FindDecimalPrecisions finds decimal.precision records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindDecimalPrecisionId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no decimal.precision was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("decimal.precision was not found with criteria %v and options %v", criteria, options) } diff --git a/decimal_precision_test.go b/decimal_precision_test.go index 9abad5ac..6c5c5fbd 100644 --- a/decimal_precision_test.go +++ b/decimal_precision_test.go @@ -85,7 +85,7 @@ func (c *Client) FindDecimalPrecisionTest(criteria *Criteria) (*DecimalPrecision if dpts != nil && len(*dpts) > 0 { return &((*dpts)[0]), nil } - return nil, fmt.Errorf("no decimal.precision.test was found with criteria %v", criteria) + return nil, fmt.Errorf("decimal.precision.test was not found with criteria %v", criteria) } // FindDecimalPrecisionTests finds decimal.precision.test records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindDecimalPrecisionTestId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no decimal.precision.test was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("decimal.precision.test was not found with criteria %v and options %v", criteria, options) } diff --git a/email_template_preview.go b/email_template_preview.go index f0c98e7e..b9827cde 100644 --- a/email_template_preview.go +++ b/email_template_preview.go @@ -109,7 +109,7 @@ func (c *Client) FindEmailTemplatePreview(criteria *Criteria) (*EmailTemplatePre if eps != nil && len(*eps) > 0 { return &((*eps)[0]), nil } - return nil, fmt.Errorf("no email_template.preview was found with criteria %v", criteria) + return nil, fmt.Errorf("email_template.preview was not found with criteria %v", criteria) } // FindEmailTemplatePreviews finds email_template.preview records by querying it @@ -141,5 +141,5 @@ func (c *Client) FindEmailTemplatePreviewId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no email_template.preview was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("email_template.preview was not found with criteria %v and options %v", criteria, options) } diff --git a/fetchmail_server.go b/fetchmail_server.go index 26316fea..369a7952 100644 --- a/fetchmail_server.go +++ b/fetchmail_server.go @@ -100,7 +100,7 @@ func (c *Client) FindFetchmailServer(criteria *Criteria) (*FetchmailServer, erro if fss != nil && len(*fss) > 0 { return &((*fss)[0]), nil } - return nil, fmt.Errorf("no fetchmail.server was found with criteria %v", criteria) + return nil, fmt.Errorf("fetchmail.server was not found with criteria %v", criteria) } // FindFetchmailServers finds fetchmail.server records by querying it @@ -132,5 +132,5 @@ func (c *Client) FindFetchmailServerId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no fetchmail.server was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("fetchmail.server was not found with criteria %v and options %v", criteria, options) } diff --git a/format_address_mixin.go b/format_address_mixin.go index 64720078..c25fd734 100644 --- a/format_address_mixin.go +++ b/format_address_mixin.go @@ -78,7 +78,7 @@ func (c *Client) FindFormatAddressMixin(criteria *Criteria) (*FormatAddressMixin if fams != nil && len(*fams) > 0 { return &((*fams)[0]), nil } - return nil, fmt.Errorf("no format.address.mixin was found with criteria %v", criteria) + return nil, fmt.Errorf("format.address.mixin was not found with criteria %v", criteria) } // FindFormatAddressMixins finds format.address.mixin records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindFormatAddressMixinId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no format.address.mixin was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("format.address.mixin was not found with criteria %v and options %v", criteria, options) } diff --git a/generator/cmd/tmpl/model.tmpl b/generator/cmd/tmpl/model.tmpl index c2e8ed79..8c904c3a 100644 --- a/generator/cmd/tmpl/model.tmpl +++ b/generator/cmd/tmpl/model.tmpl @@ -76,7 +76,7 @@ func (c *Client) Find{{.StructName}}(criteria *Criteria) (*{{.StructName}}, erro if {{.VarsName}} != nil && len(*{{.VarsName}}) > 0 { return &((*{{.VarsName}})[0]), nil } - return nil, fmt.Errorf("no {{ .Name }} was found with criteria %v", criteria) + return nil, fmt.Errorf("{{ .Name }} was not found with criteria %v", criteria) } // Find{{.StructName}}s finds {{ .Name }} records by querying it @@ -108,5 +108,5 @@ func (c *Client) Find{{.StructName}}Id(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no {{ .Name }} was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("{{ .Name }} was not found with criteria %v and options %v", criteria, options) } diff --git a/hr_department.go b/hr_department.go index d751fc97..3bad7eb4 100644 --- a/hr_department.go +++ b/hr_department.go @@ -108,7 +108,7 @@ func (c *Client) FindHrDepartment(criteria *Criteria) (*HrDepartment, error) { if hds != nil && len(*hds) > 0 { return &((*hds)[0]), nil } - return nil, fmt.Errorf("no hr.department was found with criteria %v", criteria) + return nil, fmt.Errorf("hr.department was not found with criteria %v", criteria) } // FindHrDepartments finds hr.department records by querying it @@ -140,5 +140,5 @@ func (c *Client) FindHrDepartmentId(criteria *Criteria, options *Options) (int64 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no hr.department was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("hr.department was not found with criteria %v and options %v", criteria, options) } diff --git a/hr_employee.go b/hr_employee.go index 87bc4698..9a62523a 100644 --- a/hr_employee.go +++ b/hr_employee.go @@ -140,7 +140,7 @@ func (c *Client) FindHrEmployee(criteria *Criteria) (*HrEmployee, error) { if hes != nil && len(*hes) > 0 { return &((*hes)[0]), nil } - return nil, fmt.Errorf("no hr.employee was found with criteria %v", criteria) + return nil, fmt.Errorf("hr.employee was not found with criteria %v", criteria) } // FindHrEmployees finds hr.employee records by querying it @@ -172,5 +172,5 @@ func (c *Client) FindHrEmployeeId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no hr.employee was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("hr.employee was not found with criteria %v and options %v", criteria, options) } diff --git a/hr_employee_category.go b/hr_employee_category.go index 9e64104a..fbe876a4 100644 --- a/hr_employee_category.go +++ b/hr_employee_category.go @@ -85,7 +85,7 @@ func (c *Client) FindHrEmployeeCategory(criteria *Criteria) (*HrEmployeeCategory if hecs != nil && len(*hecs) > 0 { return &((*hecs)[0]), nil } - return nil, fmt.Errorf("no hr.employee.category was found with criteria %v", criteria) + return nil, fmt.Errorf("hr.employee.category was not found with criteria %v", criteria) } // FindHrEmployeeCategorys finds hr.employee.category records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindHrEmployeeCategoryId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no hr.employee.category was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("hr.employee.category was not found with criteria %v and options %v", criteria, options) } diff --git a/hr_holidays.go b/hr_holidays.go index 11d437d0..8bdffb53 100644 --- a/hr_holidays.go +++ b/hr_holidays.go @@ -118,7 +118,7 @@ func (c *Client) FindHrHolidays(criteria *Criteria) (*HrHolidays, error) { if hhs != nil && len(*hhs) > 0 { return &((*hhs)[0]), nil } - return nil, fmt.Errorf("no hr.holidays was found with criteria %v", criteria) + return nil, fmt.Errorf("hr.holidays was not found with criteria %v", criteria) } // FindHrHolidayss finds hr.holidays records by querying it @@ -150,5 +150,5 @@ func (c *Client) FindHrHolidaysId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no hr.holidays was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("hr.holidays was not found with criteria %v and options %v", criteria, options) } diff --git a/hr_holidays_remaining_leaves_user.go b/hr_holidays_remaining_leaves_user.go index 5cca2002..9648705d 100644 --- a/hr_holidays_remaining_leaves_user.go +++ b/hr_holidays_remaining_leaves_user.go @@ -82,7 +82,7 @@ func (c *Client) FindHrHolidaysRemainingLeavesUser(criteria *Criteria) (*HrHolid if hhrlus != nil && len(*hhrlus) > 0 { return &((*hhrlus)[0]), nil } - return nil, fmt.Errorf("no hr.holidays.remaining.leaves.user was found with criteria %v", criteria) + return nil, fmt.Errorf("hr.holidays.remaining.leaves.user was not found with criteria %v", criteria) } // FindHrHolidaysRemainingLeavesUsers finds hr.holidays.remaining.leaves.user records by querying it @@ -114,5 +114,5 @@ func (c *Client) FindHrHolidaysRemainingLeavesUserId(criteria *Criteria, options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no hr.holidays.remaining.leaves.user was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("hr.holidays.remaining.leaves.user was not found with criteria %v and options %v", criteria, options) } diff --git a/hr_holidays_status.go b/hr_holidays_status.go index 5bff99eb..92f2f45a 100644 --- a/hr_holidays_status.go +++ b/hr_holidays_status.go @@ -96,7 +96,7 @@ func (c *Client) FindHrHolidaysStatus(criteria *Criteria) (*HrHolidaysStatus, er if hhss != nil && len(*hhss) > 0 { return &((*hhss)[0]), nil } - return nil, fmt.Errorf("no hr.holidays.status was found with criteria %v", criteria) + return nil, fmt.Errorf("hr.holidays.status was not found with criteria %v", criteria) } // FindHrHolidaysStatuss finds hr.holidays.status records by querying it @@ -128,5 +128,5 @@ func (c *Client) FindHrHolidaysStatusId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no hr.holidays.status was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("hr.holidays.status was not found with criteria %v and options %v", criteria, options) } diff --git a/hr_holidays_summary_dept.go b/hr_holidays_summary_dept.go index 3bad1bbf..09623b2a 100644 --- a/hr_holidays_summary_dept.go +++ b/hr_holidays_summary_dept.go @@ -85,7 +85,7 @@ func (c *Client) FindHrHolidaysSummaryDept(criteria *Criteria) (*HrHolidaysSumma if hhsds != nil && len(*hhsds) > 0 { return &((*hhsds)[0]), nil } - return nil, fmt.Errorf("no hr.holidays.summary.dept was found with criteria %v", criteria) + return nil, fmt.Errorf("hr.holidays.summary.dept was not found with criteria %v", criteria) } // FindHrHolidaysSummaryDepts finds hr.holidays.summary.dept records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindHrHolidaysSummaryDeptId(criteria *Criteria, options *Option if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no hr.holidays.summary.dept was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("hr.holidays.summary.dept was not found with criteria %v and options %v", criteria, options) } diff --git a/hr_holidays_summary_employee.go b/hr_holidays_summary_employee.go index 8b34bf0b..73a35c5c 100644 --- a/hr_holidays_summary_employee.go +++ b/hr_holidays_summary_employee.go @@ -85,7 +85,7 @@ func (c *Client) FindHrHolidaysSummaryEmployee(criteria *Criteria) (*HrHolidaysS if hhses != nil && len(*hhses) > 0 { return &((*hhses)[0]), nil } - return nil, fmt.Errorf("no hr.holidays.summary.employee was found with criteria %v", criteria) + return nil, fmt.Errorf("hr.holidays.summary.employee was not found with criteria %v", criteria) } // FindHrHolidaysSummaryEmployees finds hr.holidays.summary.employee records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindHrHolidaysSummaryEmployeeId(criteria *Criteria, options *Op if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no hr.holidays.summary.employee was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("hr.holidays.summary.employee was not found with criteria %v and options %v", criteria, options) } diff --git a/hr_job.go b/hr_job.go index 53a036ce..f0a82d0b 100644 --- a/hr_job.go +++ b/hr_job.go @@ -104,7 +104,7 @@ func (c *Client) FindHrJob(criteria *Criteria) (*HrJob, error) { if hjs != nil && len(*hjs) > 0 { return &((*hjs)[0]), nil } - return nil, fmt.Errorf("no hr.job was found with criteria %v", criteria) + return nil, fmt.Errorf("hr.job was not found with criteria %v", criteria) } // FindHrJobs finds hr.job records by querying it @@ -136,5 +136,5 @@ func (c *Client) FindHrJobId(criteria *Criteria, options *Options) (int64, error if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no hr.job was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("hr.job was not found with criteria %v and options %v", criteria, options) } diff --git a/iap_account.go b/iap_account.go index 256b42ae..baed898b 100644 --- a/iap_account.go +++ b/iap_account.go @@ -85,7 +85,7 @@ func (c *Client) FindIapAccount(criteria *Criteria) (*IapAccount, error) { if ias != nil && len(*ias) > 0 { return &((*ias)[0]), nil } - return nil, fmt.Errorf("no iap.account was found with criteria %v", criteria) + return nil, fmt.Errorf("iap.account was not found with criteria %v", criteria) } // FindIapAccounts finds iap.account records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindIapAccountId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no iap.account was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("iap.account was not found with criteria %v and options %v", criteria, options) } diff --git a/im_livechat_channel.go b/im_livechat_channel.go index 2944ed55..ff9c6479 100644 --- a/im_livechat_channel.go +++ b/im_livechat_channel.go @@ -97,7 +97,7 @@ func (c *Client) FindImLivechatChannel(criteria *Criteria) (*ImLivechatChannel, if ics != nil && len(*ics) > 0 { return &((*ics)[0]), nil } - return nil, fmt.Errorf("no im_livechat.channel was found with criteria %v", criteria) + return nil, fmt.Errorf("im_livechat.channel was not found with criteria %v", criteria) } // FindImLivechatChannels finds im_livechat.channel records by querying it @@ -129,5 +129,5 @@ func (c *Client) FindImLivechatChannelId(criteria *Criteria, options *Options) ( if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no im_livechat.channel was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("im_livechat.channel was not found with criteria %v and options %v", criteria, options) } diff --git a/im_livechat_channel_rule.go b/im_livechat_channel_rule.go index b7638e5e..6b3aa657 100644 --- a/im_livechat_channel_rule.go +++ b/im_livechat_channel_rule.go @@ -88,7 +88,7 @@ func (c *Client) FindImLivechatChannelRule(criteria *Criteria) (*ImLivechatChann if icrs != nil && len(*icrs) > 0 { return &((*icrs)[0]), nil } - return nil, fmt.Errorf("no im_livechat.channel.rule was found with criteria %v", criteria) + return nil, fmt.Errorf("im_livechat.channel.rule was not found with criteria %v", criteria) } // FindImLivechatChannelRules finds im_livechat.channel.rule records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindImLivechatChannelRuleId(criteria *Criteria, options *Option if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no im_livechat.channel.rule was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("im_livechat.channel.rule was not found with criteria %v and options %v", criteria, options) } diff --git a/im_livechat_report_channel.go b/im_livechat_report_channel.go index f5d803fc..6642d7cb 100644 --- a/im_livechat_report_channel.go +++ b/im_livechat_report_channel.go @@ -89,7 +89,7 @@ func (c *Client) FindImLivechatReportChannel(criteria *Criteria) (*ImLivechatRep if ircs != nil && len(*ircs) > 0 { return &((*ircs)[0]), nil } - return nil, fmt.Errorf("no im_livechat.report.channel was found with criteria %v", criteria) + return nil, fmt.Errorf("im_livechat.report.channel was not found with criteria %v", criteria) } // FindImLivechatReportChannels finds im_livechat.report.channel records by querying it @@ -121,5 +121,5 @@ func (c *Client) FindImLivechatReportChannelId(criteria *Criteria, options *Opti if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no im_livechat.report.channel was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("im_livechat.report.channel was not found with criteria %v and options %v", criteria, options) } diff --git a/im_livechat_report_operator.go b/im_livechat_report_operator.go index fee7efc0..e6a0935d 100644 --- a/im_livechat_report_operator.go +++ b/im_livechat_report_operator.go @@ -85,7 +85,7 @@ func (c *Client) FindImLivechatReportOperator(criteria *Criteria) (*ImLivechatRe if iros != nil && len(*iros) > 0 { return &((*iros)[0]), nil } - return nil, fmt.Errorf("no im_livechat.report.operator was found with criteria %v", criteria) + return nil, fmt.Errorf("im_livechat.report.operator was not found with criteria %v", criteria) } // FindImLivechatReportOperators finds im_livechat.report.operator records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindImLivechatReportOperatorId(criteria *Criteria, options *Opt if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no im_livechat.report.operator was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("im_livechat.report.operator was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_actions_act_url.go b/ir_actions_act_url.go index dcf545ba..92a3df6b 100644 --- a/ir_actions_act_url.go +++ b/ir_actions_act_url.go @@ -90,7 +90,7 @@ func (c *Client) FindIrActionsActUrl(criteria *Criteria) (*IrActionsActUrl, erro if iaas != nil && len(*iaas) > 0 { return &((*iaas)[0]), nil } - return nil, fmt.Errorf("no ir.actions.act_url was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.actions.act_url was not found with criteria %v", criteria) } // FindIrActionsActUrls finds ir.actions.act_url records by querying it @@ -122,5 +122,5 @@ func (c *Client) FindIrActionsActUrlId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.actions.act_url was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.actions.act_url was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_actions_act_window.go b/ir_actions_act_window.go index 9e50d594..88389241 100644 --- a/ir_actions_act_window.go +++ b/ir_actions_act_window.go @@ -107,7 +107,7 @@ func (c *Client) FindIrActionsActWindow(criteria *Criteria) (*IrActionsActWindow if iaas != nil && len(*iaas) > 0 { return &((*iaas)[0]), nil } - return nil, fmt.Errorf("no ir.actions.act_window was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.actions.act_window was not found with criteria %v", criteria) } // FindIrActionsActWindows finds ir.actions.act_window records by querying it @@ -139,5 +139,5 @@ func (c *Client) FindIrActionsActWindowId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.actions.act_window was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.actions.act_window was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_actions_act_window_close.go b/ir_actions_act_window_close.go index e09cb349..e1df39dd 100644 --- a/ir_actions_act_window_close.go +++ b/ir_actions_act_window_close.go @@ -88,7 +88,7 @@ func (c *Client) FindIrActionsActWindowClose(criteria *Criteria) (*IrActionsActW if iaas != nil && len(*iaas) > 0 { return &((*iaas)[0]), nil } - return nil, fmt.Errorf("no ir.actions.act_window_close was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.actions.act_window_close was not found with criteria %v", criteria) } // FindIrActionsActWindowCloses finds ir.actions.act_window_close records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindIrActionsActWindowCloseId(criteria *Criteria, options *Opti if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.actions.act_window_close was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.actions.act_window_close was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_actions_act_window_view.go b/ir_actions_act_window_view.go index 85aef3b4..80e1e2e0 100644 --- a/ir_actions_act_window_view.go +++ b/ir_actions_act_window_view.go @@ -87,7 +87,7 @@ func (c *Client) FindIrActionsActWindowView(criteria *Criteria) (*IrActionsActWi if iaavs != nil && len(*iaavs) > 0 { return &((*iaavs)[0]), nil } - return nil, fmt.Errorf("no ir.actions.act_window.view was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.actions.act_window.view was not found with criteria %v", criteria) } // FindIrActionsActWindowViews finds ir.actions.act_window.view records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindIrActionsActWindowViewId(criteria *Criteria, options *Optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.actions.act_window.view was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.actions.act_window.view was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_actions_actions.go b/ir_actions_actions.go index f09add67..81190f5c 100644 --- a/ir_actions_actions.go +++ b/ir_actions_actions.go @@ -88,7 +88,7 @@ func (c *Client) FindIrActionsActions(criteria *Criteria) (*IrActionsActions, er if iaas != nil && len(*iaas) > 0 { return &((*iaas)[0]), nil } - return nil, fmt.Errorf("no ir.actions.actions was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.actions.actions was not found with criteria %v", criteria) } // FindIrActionsActionss finds ir.actions.actions records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindIrActionsActionsId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.actions.actions was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.actions.actions was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_actions_client.go b/ir_actions_client.go index fcdea104..170928c9 100644 --- a/ir_actions_client.go +++ b/ir_actions_client.go @@ -94,7 +94,7 @@ func (c *Client) FindIrActionsClient(criteria *Criteria) (*IrActionsClient, erro if iacs != nil && len(*iacs) > 0 { return &((*iacs)[0]), nil } - return nil, fmt.Errorf("no ir.actions.client was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.actions.client was not found with criteria %v", criteria) } // FindIrActionsClients finds ir.actions.client records by querying it @@ -126,5 +126,5 @@ func (c *Client) FindIrActionsClientId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.actions.client was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.actions.client was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_actions_report.go b/ir_actions_report.go index 5e61c31d..82223324 100644 --- a/ir_actions_report.go +++ b/ir_actions_report.go @@ -98,7 +98,7 @@ func (c *Client) FindIrActionsReport(criteria *Criteria) (*IrActionsReport, erro if iars != nil && len(*iars) > 0 { return &((*iars)[0]), nil } - return nil, fmt.Errorf("no ir.actions.report was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.actions.report was not found with criteria %v", criteria) } // FindIrActionsReports finds ir.actions.report records by querying it @@ -130,5 +130,5 @@ func (c *Client) FindIrActionsReportId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.actions.report was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.actions.report was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_actions_server.go b/ir_actions_server.go index 7d13aa8f..eecffcf4 100644 --- a/ir_actions_server.go +++ b/ir_actions_server.go @@ -102,7 +102,7 @@ func (c *Client) FindIrActionsServer(criteria *Criteria) (*IrActionsServer, erro if iass != nil && len(*iass) > 0 { return &((*iass)[0]), nil } - return nil, fmt.Errorf("no ir.actions.server was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.actions.server was not found with criteria %v", criteria) } // FindIrActionsServers finds ir.actions.server records by querying it @@ -134,5 +134,5 @@ func (c *Client) FindIrActionsServerId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.actions.server was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.actions.server was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_actions_todo.go b/ir_actions_todo.go index f0a0b835..558602f9 100644 --- a/ir_actions_todo.go +++ b/ir_actions_todo.go @@ -86,7 +86,7 @@ func (c *Client) FindIrActionsTodo(criteria *Criteria) (*IrActionsTodo, error) { if iats != nil && len(*iats) > 0 { return &((*iats)[0]), nil } - return nil, fmt.Errorf("no ir.actions.todo was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.actions.todo was not found with criteria %v", criteria) } // FindIrActionsTodos finds ir.actions.todo records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindIrActionsTodoId(criteria *Criteria, options *Options) (int6 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.actions.todo was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.actions.todo was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_attachment.go b/ir_attachment.go index e5afaafa..e9f9000a 100644 --- a/ir_attachment.go +++ b/ir_attachment.go @@ -102,7 +102,7 @@ func (c *Client) FindIrAttachment(criteria *Criteria) (*IrAttachment, error) { if ias != nil && len(*ias) > 0 { return &((*ias)[0]), nil } - return nil, fmt.Errorf("no ir.attachment was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.attachment was not found with criteria %v", criteria) } // FindIrAttachments finds ir.attachment records by querying it @@ -134,5 +134,5 @@ func (c *Client) FindIrAttachmentId(criteria *Criteria, options *Options) (int64 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.attachment was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.attachment was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_autovacuum.go b/ir_autovacuum.go index f31041f3..8ee7005d 100644 --- a/ir_autovacuum.go +++ b/ir_autovacuum.go @@ -78,7 +78,7 @@ func (c *Client) FindIrAutovacuum(criteria *Criteria) (*IrAutovacuum, error) { if ias != nil && len(*ias) > 0 { return &((*ias)[0]), nil } - return nil, fmt.Errorf("no ir.autovacuum was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.autovacuum was not found with criteria %v", criteria) } // FindIrAutovacuums finds ir.autovacuum records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrAutovacuumId(criteria *Criteria, options *Options) (int64 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.autovacuum was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.autovacuum was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_config_parameter.go b/ir_config_parameter.go index 17eabb3b..34f88888 100644 --- a/ir_config_parameter.go +++ b/ir_config_parameter.go @@ -84,7 +84,7 @@ func (c *Client) FindIrConfigParameter(criteria *Criteria) (*IrConfigParameter, if ics != nil && len(*ics) > 0 { return &((*ics)[0]), nil } - return nil, fmt.Errorf("no ir.config_parameter was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.config_parameter was not found with criteria %v", criteria) } // FindIrConfigParameters finds ir.config_parameter records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindIrConfigParameterId(criteria *Criteria, options *Options) ( if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.config_parameter was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.config_parameter was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_cron.go b/ir_cron.go index e08bd7d3..fb5f0484 100644 --- a/ir_cron.go +++ b/ir_cron.go @@ -112,7 +112,7 @@ func (c *Client) FindIrCron(criteria *Criteria) (*IrCron, error) { if ics != nil && len(*ics) > 0 { return &((*ics)[0]), nil } - return nil, fmt.Errorf("no ir.cron was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.cron was not found with criteria %v", criteria) } // FindIrCrons finds ir.cron records by querying it @@ -144,5 +144,5 @@ func (c *Client) FindIrCronId(criteria *Criteria, options *Options) (int64, erro if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.cron was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.cron was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_default.go b/ir_default.go index 8c154691..ac88bad1 100644 --- a/ir_default.go +++ b/ir_default.go @@ -87,7 +87,7 @@ func (c *Client) FindIrDefault(criteria *Criteria) (*IrDefault, error) { if IDs != nil && len(*IDs) > 0 { return &((*IDs)[0]), nil } - return nil, fmt.Errorf("no ir.default was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.default was not found with criteria %v", criteria) } // FindIrDefaults finds ir.default records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindIrDefaultId(criteria *Criteria, options *Options) (int64, e if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.default was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.default was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_exports.go b/ir_exports.go index 23f44080..529c9263 100644 --- a/ir_exports.go +++ b/ir_exports.go @@ -85,7 +85,7 @@ func (c *Client) FindIrExports(criteria *Criteria) (*IrExports, error) { if ies != nil && len(*ies) > 0 { return &((*ies)[0]), nil } - return nil, fmt.Errorf("no ir.exports was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.exports was not found with criteria %v", criteria) } // FindIrExportss finds ir.exports records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindIrExportsId(criteria *Criteria, options *Options) (int64, e if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.exports was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.exports was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_exports_line.go b/ir_exports_line.go index bd3a3221..ec9789ff 100644 --- a/ir_exports_line.go +++ b/ir_exports_line.go @@ -84,7 +84,7 @@ func (c *Client) FindIrExportsLine(criteria *Criteria) (*IrExportsLine, error) { if iels != nil && len(*iels) > 0 { return &((*iels)[0]), nil } - return nil, fmt.Errorf("no ir.exports.line was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.exports.line was not found with criteria %v", criteria) } // FindIrExportsLines finds ir.exports.line records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindIrExportsLineId(criteria *Criteria, options *Options) (int6 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.exports.line was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.exports.line was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_fields_converter.go b/ir_fields_converter.go index 08e1d63c..1cf157b2 100644 --- a/ir_fields_converter.go +++ b/ir_fields_converter.go @@ -78,7 +78,7 @@ func (c *Client) FindIrFieldsConverter(criteria *Criteria) (*IrFieldsConverter, if ifcs != nil && len(*ifcs) > 0 { return &((*ifcs)[0]), nil } - return nil, fmt.Errorf("no ir.fields.converter was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.fields.converter was not found with criteria %v", criteria) } // FindIrFieldsConverters finds ir.fields.converter records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrFieldsConverterId(criteria *Criteria, options *Options) ( if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.fields.converter was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.fields.converter was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_filters.go b/ir_filters.go index a9c43abf..34fc46a2 100644 --- a/ir_filters.go +++ b/ir_filters.go @@ -91,7 +91,7 @@ func (c *Client) FindIrFilters(criteria *Criteria) (*IrFilters, error) { if IFs != nil && len(*IFs) > 0 { return &((*IFs)[0]), nil } - return nil, fmt.Errorf("no ir.filters was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.filters was not found with criteria %v", criteria) } // FindIrFilterss finds ir.filters records by querying it @@ -123,5 +123,5 @@ func (c *Client) FindIrFiltersId(criteria *Criteria, options *Options) (int64, e if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.filters was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.filters was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_http.go b/ir_http.go index a118a4aa..d28c6c5c 100644 --- a/ir_http.go +++ b/ir_http.go @@ -78,7 +78,7 @@ func (c *Client) FindIrHttp(criteria *Criteria) (*IrHttp, error) { if ihs != nil && len(*ihs) > 0 { return &((*ihs)[0]), nil } - return nil, fmt.Errorf("no ir.http was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.http was not found with criteria %v", criteria) } // FindIrHttps finds ir.http records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrHttpId(criteria *Criteria, options *Options) (int64, erro if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.http was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.http was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_logging.go b/ir_logging.go index 04a6642f..d429638c 100644 --- a/ir_logging.go +++ b/ir_logging.go @@ -90,7 +90,7 @@ func (c *Client) FindIrLogging(criteria *Criteria) (*IrLogging, error) { if ils != nil && len(*ils) > 0 { return &((*ils)[0]), nil } - return nil, fmt.Errorf("no ir.logging was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.logging was not found with criteria %v", criteria) } // FindIrLoggings finds ir.logging records by querying it @@ -122,5 +122,5 @@ func (c *Client) FindIrLoggingId(criteria *Criteria, options *Options) (int64, e if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.logging was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.logging was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_mail_server.go b/ir_mail_server.go index ccb90f8c..13e19adc 100644 --- a/ir_mail_server.go +++ b/ir_mail_server.go @@ -91,7 +91,7 @@ func (c *Client) FindIrMailServer(criteria *Criteria) (*IrMailServer, error) { if ims != nil && len(*ims) > 0 { return &((*ims)[0]), nil } - return nil, fmt.Errorf("no ir.mail_server was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.mail_server was not found with criteria %v", criteria) } // FindIrMailServers finds ir.mail_server records by querying it @@ -123,5 +123,5 @@ func (c *Client) FindIrMailServerId(criteria *Criteria, options *Options) (int64 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.mail_server was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.mail_server was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_model.go b/ir_model.go index 2f5a9f1b..c454edb6 100644 --- a/ir_model.go +++ b/ir_model.go @@ -94,7 +94,7 @@ func (c *Client) FindIrModel(criteria *Criteria) (*IrModel, error) { if ims != nil && len(*ims) > 0 { return &((*ims)[0]), nil } - return nil, fmt.Errorf("no ir.model was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.model was not found with criteria %v", criteria) } // FindIrModels finds ir.model records by querying it @@ -126,5 +126,5 @@ func (c *Client) FindIrModelId(criteria *Criteria, options *Options) (int64, err if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.model was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.model was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_model_access.go b/ir_model_access.go index 20ce6d26..c99f1607 100644 --- a/ir_model_access.go +++ b/ir_model_access.go @@ -90,7 +90,7 @@ func (c *Client) FindIrModelAccess(criteria *Criteria) (*IrModelAccess, error) { if imas != nil && len(*imas) > 0 { return &((*imas)[0]), nil } - return nil, fmt.Errorf("no ir.model.access was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.model.access was not found with criteria %v", criteria) } // FindIrModelAccesss finds ir.model.access records by querying it @@ -122,5 +122,5 @@ func (c *Client) FindIrModelAccessId(criteria *Criteria, options *Options) (int6 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.model.access was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.model.access was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_model_constraint.go b/ir_model_constraint.go index e8dd4bcb..a621c48d 100644 --- a/ir_model_constraint.go +++ b/ir_model_constraint.go @@ -89,7 +89,7 @@ func (c *Client) FindIrModelConstraint(criteria *Criteria) (*IrModelConstraint, if imcs != nil && len(*imcs) > 0 { return &((*imcs)[0]), nil } - return nil, fmt.Errorf("no ir.model.constraint was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.model.constraint was not found with criteria %v", criteria) } // FindIrModelConstraints finds ir.model.constraint records by querying it @@ -121,5 +121,5 @@ func (c *Client) FindIrModelConstraintId(criteria *Criteria, options *Options) ( if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.model.constraint was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.model.constraint was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_model_data.go b/ir_model_data.go index f009a71d..c3805719 100644 --- a/ir_model_data.go +++ b/ir_model_data.go @@ -91,7 +91,7 @@ func (c *Client) FindIrModelData(criteria *Criteria) (*IrModelData, error) { if imds != nil && len(*imds) > 0 { return &((*imds)[0]), nil } - return nil, fmt.Errorf("no ir.model.data was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.model.data was not found with criteria %v", criteria) } // FindIrModelDatas finds ir.model.data records by querying it @@ -123,5 +123,5 @@ func (c *Client) FindIrModelDataId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.model.data was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.model.data was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_model_fields.go b/ir_model_fields.go index 5025f2c3..c235ab87 100644 --- a/ir_model_fields.go +++ b/ir_model_fields.go @@ -113,7 +113,7 @@ func (c *Client) FindIrModelFields(criteria *Criteria) (*IrModelFields, error) { if imfs != nil && len(*imfs) > 0 { return &((*imfs)[0]), nil } - return nil, fmt.Errorf("no ir.model.fields was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.model.fields was not found with criteria %v", criteria) } // FindIrModelFieldss finds ir.model.fields records by querying it @@ -145,5 +145,5 @@ func (c *Client) FindIrModelFieldsId(criteria *Criteria, options *Options) (int6 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.model.fields was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.model.fields was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_model_relation.go b/ir_model_relation.go index 068406da..480490ab 100644 --- a/ir_model_relation.go +++ b/ir_model_relation.go @@ -87,7 +87,7 @@ func (c *Client) FindIrModelRelation(criteria *Criteria) (*IrModelRelation, erro if imrs != nil && len(*imrs) > 0 { return &((*imrs)[0]), nil } - return nil, fmt.Errorf("no ir.model.relation was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.model.relation was not found with criteria %v", criteria) } // FindIrModelRelations finds ir.model.relation records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindIrModelRelationId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.model.relation was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.model.relation was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_module_category.go b/ir_module_category.go index 4ccba592..7ac90973 100644 --- a/ir_module_category.go +++ b/ir_module_category.go @@ -92,7 +92,7 @@ func (c *Client) FindIrModuleCategory(criteria *Criteria) (*IrModuleCategory, er if imcs != nil && len(*imcs) > 0 { return &((*imcs)[0]), nil } - return nil, fmt.Errorf("no ir.module.category was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.module.category was not found with criteria %v", criteria) } // FindIrModuleCategorys finds ir.module.category records by querying it @@ -124,5 +124,5 @@ func (c *Client) FindIrModuleCategoryId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.module.category was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.module.category was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_module_module.go b/ir_module_module.go index d49453f7..cfd426dd 100644 --- a/ir_module_module.go +++ b/ir_module_module.go @@ -109,7 +109,7 @@ func (c *Client) FindIrModuleModule(criteria *Criteria) (*IrModuleModule, error) if imms != nil && len(*imms) > 0 { return &((*imms)[0]), nil } - return nil, fmt.Errorf("no ir.module.module was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.module.module was not found with criteria %v", criteria) } // FindIrModuleModules finds ir.module.module records by querying it @@ -141,5 +141,5 @@ func (c *Client) FindIrModuleModuleId(criteria *Criteria, options *Options) (int if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.module.module was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.module.module was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_module_module_dependency.go b/ir_module_module_dependency.go index 05a9c0fc..3ae02591 100644 --- a/ir_module_module_dependency.go +++ b/ir_module_module_dependency.go @@ -86,7 +86,7 @@ func (c *Client) FindIrModuleModuleDependency(criteria *Criteria) (*IrModuleModu if immds != nil && len(*immds) > 0 { return &((*immds)[0]), nil } - return nil, fmt.Errorf("no ir.module.module.dependency was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.module.module.dependency was not found with criteria %v", criteria) } // FindIrModuleModuleDependencys finds ir.module.module.dependency records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindIrModuleModuleDependencyId(criteria *Criteria, options *Opt if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.module.module.dependency was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.module.module.dependency was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_module_module_exclusion.go b/ir_module_module_exclusion.go index d234a1b4..88cc2592 100644 --- a/ir_module_module_exclusion.go +++ b/ir_module_module_exclusion.go @@ -86,7 +86,7 @@ func (c *Client) FindIrModuleModuleExclusion(criteria *Criteria) (*IrModuleModul if immes != nil && len(*immes) > 0 { return &((*immes)[0]), nil } - return nil, fmt.Errorf("no ir.module.module.exclusion was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.module.module.exclusion was not found with criteria %v", criteria) } // FindIrModuleModuleExclusions finds ir.module.module.exclusion records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindIrModuleModuleExclusionId(criteria *Criteria, options *Opti if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.module.module.exclusion was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.module.module.exclusion was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_property.go b/ir_property.go index bdd3c5c8..e18b9d58 100644 --- a/ir_property.go +++ b/ir_property.go @@ -93,7 +93,7 @@ func (c *Client) FindIrProperty(criteria *Criteria) (*IrProperty, error) { if ips != nil && len(*ips) > 0 { return &((*ips)[0]), nil } - return nil, fmt.Errorf("no ir.property was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.property was not found with criteria %v", criteria) } // FindIrPropertys finds ir.property records by querying it @@ -125,5 +125,5 @@ func (c *Client) FindIrPropertyId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.property was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.property was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_qweb.go b/ir_qweb.go index 9ab90f7d..18a5c869 100644 --- a/ir_qweb.go +++ b/ir_qweb.go @@ -78,7 +78,7 @@ func (c *Client) FindIrQweb(criteria *Criteria) (*IrQweb, error) { if iqs != nil && len(*iqs) > 0 { return &((*iqs)[0]), nil } - return nil, fmt.Errorf("no ir.qweb was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.qweb was not found with criteria %v", criteria) } // FindIrQwebs finds ir.qweb records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrQwebId(criteria *Criteria, options *Options) (int64, erro if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.qweb was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.qweb was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_qweb_field.go b/ir_qweb_field.go index 6a6ea547..5b1fe107 100644 --- a/ir_qweb_field.go +++ b/ir_qweb_field.go @@ -78,7 +78,7 @@ func (c *Client) FindIrQwebField(criteria *Criteria) (*IrQwebField, error) { if iqfs != nil && len(*iqfs) > 0 { return &((*iqfs)[0]), nil } - return nil, fmt.Errorf("no ir.qweb.field was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.qweb.field was not found with criteria %v", criteria) } // FindIrQwebFields finds ir.qweb.field records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrQwebFieldId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.qweb.field was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.qweb.field was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_qweb_field_barcode.go b/ir_qweb_field_barcode.go index d7d9afed..686f9ddb 100644 --- a/ir_qweb_field_barcode.go +++ b/ir_qweb_field_barcode.go @@ -78,7 +78,7 @@ func (c *Client) FindIrQwebFieldBarcode(criteria *Criteria) (*IrQwebFieldBarcode if iqfbs != nil && len(*iqfbs) > 0 { return &((*iqfbs)[0]), nil } - return nil, fmt.Errorf("no ir.qweb.field.barcode was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.qweb.field.barcode was not found with criteria %v", criteria) } // FindIrQwebFieldBarcodes finds ir.qweb.field.barcode records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrQwebFieldBarcodeId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.qweb.field.barcode was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.qweb.field.barcode was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_qweb_field_contact.go b/ir_qweb_field_contact.go index 080e3f06..3f315f8a 100644 --- a/ir_qweb_field_contact.go +++ b/ir_qweb_field_contact.go @@ -78,7 +78,7 @@ func (c *Client) FindIrQwebFieldContact(criteria *Criteria) (*IrQwebFieldContact if iqfcs != nil && len(*iqfcs) > 0 { return &((*iqfcs)[0]), nil } - return nil, fmt.Errorf("no ir.qweb.field.contact was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.qweb.field.contact was not found with criteria %v", criteria) } // FindIrQwebFieldContacts finds ir.qweb.field.contact records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrQwebFieldContactId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.qweb.field.contact was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.qweb.field.contact was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_qweb_field_date.go b/ir_qweb_field_date.go index 21bd7fbd..79253564 100644 --- a/ir_qweb_field_date.go +++ b/ir_qweb_field_date.go @@ -78,7 +78,7 @@ func (c *Client) FindIrQwebFieldDate(criteria *Criteria) (*IrQwebFieldDate, erro if iqfds != nil && len(*iqfds) > 0 { return &((*iqfds)[0]), nil } - return nil, fmt.Errorf("no ir.qweb.field.date was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.qweb.field.date was not found with criteria %v", criteria) } // FindIrQwebFieldDates finds ir.qweb.field.date records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrQwebFieldDateId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.qweb.field.date was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.qweb.field.date was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_qweb_field_datetime.go b/ir_qweb_field_datetime.go index c7def3b4..e62ebc91 100644 --- a/ir_qweb_field_datetime.go +++ b/ir_qweb_field_datetime.go @@ -78,7 +78,7 @@ func (c *Client) FindIrQwebFieldDatetime(criteria *Criteria) (*IrQwebFieldDateti if iqfds != nil && len(*iqfds) > 0 { return &((*iqfds)[0]), nil } - return nil, fmt.Errorf("no ir.qweb.field.datetime was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.qweb.field.datetime was not found with criteria %v", criteria) } // FindIrQwebFieldDatetimes finds ir.qweb.field.datetime records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrQwebFieldDatetimeId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.qweb.field.datetime was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.qweb.field.datetime was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_qweb_field_duration.go b/ir_qweb_field_duration.go index d7006ebe..f72d6310 100644 --- a/ir_qweb_field_duration.go +++ b/ir_qweb_field_duration.go @@ -78,7 +78,7 @@ func (c *Client) FindIrQwebFieldDuration(criteria *Criteria) (*IrQwebFieldDurati if iqfds != nil && len(*iqfds) > 0 { return &((*iqfds)[0]), nil } - return nil, fmt.Errorf("no ir.qweb.field.duration was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.qweb.field.duration was not found with criteria %v", criteria) } // FindIrQwebFieldDurations finds ir.qweb.field.duration records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrQwebFieldDurationId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.qweb.field.duration was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.qweb.field.duration was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_qweb_field_float.go b/ir_qweb_field_float.go index af207381..97284d98 100644 --- a/ir_qweb_field_float.go +++ b/ir_qweb_field_float.go @@ -78,7 +78,7 @@ func (c *Client) FindIrQwebFieldFloat(criteria *Criteria) (*IrQwebFieldFloat, er if iqffs != nil && len(*iqffs) > 0 { return &((*iqffs)[0]), nil } - return nil, fmt.Errorf("no ir.qweb.field.float was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.qweb.field.float was not found with criteria %v", criteria) } // FindIrQwebFieldFloats finds ir.qweb.field.float records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrQwebFieldFloatId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.qweb.field.float was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.qweb.field.float was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_qweb_field_float_time.go b/ir_qweb_field_float_time.go index 70ad5734..49370c70 100644 --- a/ir_qweb_field_float_time.go +++ b/ir_qweb_field_float_time.go @@ -78,7 +78,7 @@ func (c *Client) FindIrQwebFieldFloatTime(criteria *Criteria) (*IrQwebFieldFloat if iqffs != nil && len(*iqffs) > 0 { return &((*iqffs)[0]), nil } - return nil, fmt.Errorf("no ir.qweb.field.float_time was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.qweb.field.float_time was not found with criteria %v", criteria) } // FindIrQwebFieldFloatTimes finds ir.qweb.field.float_time records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrQwebFieldFloatTimeId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.qweb.field.float_time was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.qweb.field.float_time was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_qweb_field_html.go b/ir_qweb_field_html.go index 00679cc1..5fe7a1c0 100644 --- a/ir_qweb_field_html.go +++ b/ir_qweb_field_html.go @@ -78,7 +78,7 @@ func (c *Client) FindIrQwebFieldHtml(criteria *Criteria) (*IrQwebFieldHtml, erro if iqfhs != nil && len(*iqfhs) > 0 { return &((*iqfhs)[0]), nil } - return nil, fmt.Errorf("no ir.qweb.field.html was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.qweb.field.html was not found with criteria %v", criteria) } // FindIrQwebFieldHtmls finds ir.qweb.field.html records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrQwebFieldHtmlId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.qweb.field.html was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.qweb.field.html was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_qweb_field_image.go b/ir_qweb_field_image.go index 6044c512..5782692e 100644 --- a/ir_qweb_field_image.go +++ b/ir_qweb_field_image.go @@ -78,7 +78,7 @@ func (c *Client) FindIrQwebFieldImage(criteria *Criteria) (*IrQwebFieldImage, er if iqfis != nil && len(*iqfis) > 0 { return &((*iqfis)[0]), nil } - return nil, fmt.Errorf("no ir.qweb.field.image was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.qweb.field.image was not found with criteria %v", criteria) } // FindIrQwebFieldImages finds ir.qweb.field.image records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrQwebFieldImageId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.qweb.field.image was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.qweb.field.image was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_qweb_field_integer.go b/ir_qweb_field_integer.go index 87c4bae3..9f23da71 100644 --- a/ir_qweb_field_integer.go +++ b/ir_qweb_field_integer.go @@ -78,7 +78,7 @@ func (c *Client) FindIrQwebFieldInteger(criteria *Criteria) (*IrQwebFieldInteger if iqfis != nil && len(*iqfis) > 0 { return &((*iqfis)[0]), nil } - return nil, fmt.Errorf("no ir.qweb.field.integer was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.qweb.field.integer was not found with criteria %v", criteria) } // FindIrQwebFieldIntegers finds ir.qweb.field.integer records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrQwebFieldIntegerId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.qweb.field.integer was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.qweb.field.integer was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_qweb_field_many2one.go b/ir_qweb_field_many2one.go index 14ced20d..286de8dc 100644 --- a/ir_qweb_field_many2one.go +++ b/ir_qweb_field_many2one.go @@ -78,7 +78,7 @@ func (c *Client) FindIrQwebFieldMany2One(criteria *Criteria) (*IrQwebFieldMany2O if iqfms != nil && len(*iqfms) > 0 { return &((*iqfms)[0]), nil } - return nil, fmt.Errorf("no ir.qweb.field.many2one was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.qweb.field.many2one was not found with criteria %v", criteria) } // FindIrQwebFieldMany2Ones finds ir.qweb.field.many2one records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrQwebFieldMany2OneId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.qweb.field.many2one was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.qweb.field.many2one was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_qweb_field_monetary.go b/ir_qweb_field_monetary.go index 0f544e95..1098df09 100644 --- a/ir_qweb_field_monetary.go +++ b/ir_qweb_field_monetary.go @@ -78,7 +78,7 @@ func (c *Client) FindIrQwebFieldMonetary(criteria *Criteria) (*IrQwebFieldMoneta if iqfms != nil && len(*iqfms) > 0 { return &((*iqfms)[0]), nil } - return nil, fmt.Errorf("no ir.qweb.field.monetary was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.qweb.field.monetary was not found with criteria %v", criteria) } // FindIrQwebFieldMonetarys finds ir.qweb.field.monetary records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrQwebFieldMonetaryId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.qweb.field.monetary was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.qweb.field.monetary was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_qweb_field_qweb.go b/ir_qweb_field_qweb.go index 6c633da5..441a57de 100644 --- a/ir_qweb_field_qweb.go +++ b/ir_qweb_field_qweb.go @@ -78,7 +78,7 @@ func (c *Client) FindIrQwebFieldQweb(criteria *Criteria) (*IrQwebFieldQweb, erro if iqfqs != nil && len(*iqfqs) > 0 { return &((*iqfqs)[0]), nil } - return nil, fmt.Errorf("no ir.qweb.field.qweb was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.qweb.field.qweb was not found with criteria %v", criteria) } // FindIrQwebFieldQwebs finds ir.qweb.field.qweb records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrQwebFieldQwebId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.qweb.field.qweb was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.qweb.field.qweb was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_qweb_field_relative.go b/ir_qweb_field_relative.go index 5e441507..b70b30e5 100644 --- a/ir_qweb_field_relative.go +++ b/ir_qweb_field_relative.go @@ -78,7 +78,7 @@ func (c *Client) FindIrQwebFieldRelative(criteria *Criteria) (*IrQwebFieldRelati if iqfrs != nil && len(*iqfrs) > 0 { return &((*iqfrs)[0]), nil } - return nil, fmt.Errorf("no ir.qweb.field.relative was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.qweb.field.relative was not found with criteria %v", criteria) } // FindIrQwebFieldRelatives finds ir.qweb.field.relative records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrQwebFieldRelativeId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.qweb.field.relative was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.qweb.field.relative was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_qweb_field_selection.go b/ir_qweb_field_selection.go index 3a4d77ee..a5b8acec 100644 --- a/ir_qweb_field_selection.go +++ b/ir_qweb_field_selection.go @@ -78,7 +78,7 @@ func (c *Client) FindIrQwebFieldSelection(criteria *Criteria) (*IrQwebFieldSelec if iqfss != nil && len(*iqfss) > 0 { return &((*iqfss)[0]), nil } - return nil, fmt.Errorf("no ir.qweb.field.selection was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.qweb.field.selection was not found with criteria %v", criteria) } // FindIrQwebFieldSelections finds ir.qweb.field.selection records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrQwebFieldSelectionId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.qweb.field.selection was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.qweb.field.selection was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_qweb_field_text.go b/ir_qweb_field_text.go index b4620c7b..5c2edab9 100644 --- a/ir_qweb_field_text.go +++ b/ir_qweb_field_text.go @@ -78,7 +78,7 @@ func (c *Client) FindIrQwebFieldText(criteria *Criteria) (*IrQwebFieldText, erro if iqfts != nil && len(*iqfts) > 0 { return &((*iqfts)[0]), nil } - return nil, fmt.Errorf("no ir.qweb.field.text was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.qweb.field.text was not found with criteria %v", criteria) } // FindIrQwebFieldTexts finds ir.qweb.field.text records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindIrQwebFieldTextId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.qweb.field.text was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.qweb.field.text was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_rule.go b/ir_rule.go index bd739462..d02ba395 100644 --- a/ir_rule.go +++ b/ir_rule.go @@ -92,7 +92,7 @@ func (c *Client) FindIrRule(criteria *Criteria) (*IrRule, error) { if irs != nil && len(*irs) > 0 { return &((*irs)[0]), nil } - return nil, fmt.Errorf("no ir.rule was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.rule was not found with criteria %v", criteria) } // FindIrRules finds ir.rule records by querying it @@ -124,5 +124,5 @@ func (c *Client) FindIrRuleId(criteria *Criteria, options *Options) (int64, erro if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.rule was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.rule was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_sequence.go b/ir_sequence.go index 18511736..22781ecf 100644 --- a/ir_sequence.go +++ b/ir_sequence.go @@ -95,7 +95,7 @@ func (c *Client) FindIrSequence(criteria *Criteria) (*IrSequence, error) { if iss != nil && len(*iss) > 0 { return &((*iss)[0]), nil } - return nil, fmt.Errorf("no ir.sequence was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.sequence was not found with criteria %v", criteria) } // FindIrSequences finds ir.sequence records by querying it @@ -127,5 +127,5 @@ func (c *Client) FindIrSequenceId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.sequence was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.sequence was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_sequence_date_range.go b/ir_sequence_date_range.go index b574ce51..56357cfd 100644 --- a/ir_sequence_date_range.go +++ b/ir_sequence_date_range.go @@ -87,7 +87,7 @@ func (c *Client) FindIrSequenceDateRange(criteria *Criteria) (*IrSequenceDateRan if isds != nil && len(*isds) > 0 { return &((*isds)[0]), nil } - return nil, fmt.Errorf("no ir.sequence.date_range was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.sequence.date_range was not found with criteria %v", criteria) } // FindIrSequenceDateRanges finds ir.sequence.date_range records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindIrSequenceDateRangeId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.sequence.date_range was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.sequence.date_range was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_server_object_lines.go b/ir_server_object_lines.go index ff4165fc..256ac036 100644 --- a/ir_server_object_lines.go +++ b/ir_server_object_lines.go @@ -86,7 +86,7 @@ func (c *Client) FindIrServerObjectLines(criteria *Criteria) (*IrServerObjectLin if isols != nil && len(*isols) > 0 { return &((*isols)[0]), nil } - return nil, fmt.Errorf("no ir.server.object.lines was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.server.object.lines was not found with criteria %v", criteria) } // FindIrServerObjectLiness finds ir.server.object.lines records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindIrServerObjectLinesId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.server.object.lines was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.server.object.lines was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_translation.go b/ir_translation.go index aff1a5df..05958c0c 100644 --- a/ir_translation.go +++ b/ir_translation.go @@ -88,7 +88,7 @@ func (c *Client) FindIrTranslation(criteria *Criteria) (*IrTranslation, error) { if its != nil && len(*its) > 0 { return &((*its)[0]), nil } - return nil, fmt.Errorf("no ir.translation was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.translation was not found with criteria %v", criteria) } // FindIrTranslations finds ir.translation records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindIrTranslationId(criteria *Criteria, options *Options) (int6 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.translation was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.translation was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_ui_menu.go b/ir_ui_menu.go index d33a39df..4dcb7df5 100644 --- a/ir_ui_menu.go +++ b/ir_ui_menu.go @@ -94,7 +94,7 @@ func (c *Client) FindIrUiMenu(criteria *Criteria) (*IrUiMenu, error) { if iums != nil && len(*iums) > 0 { return &((*iums)[0]), nil } - return nil, fmt.Errorf("no ir.ui.menu was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.ui.menu was not found with criteria %v", criteria) } // FindIrUiMenus finds ir.ui.menu records by querying it @@ -126,5 +126,5 @@ func (c *Client) FindIrUiMenuId(criteria *Criteria, options *Options) (int64, er if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.ui.menu was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.ui.menu was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_ui_view.go b/ir_ui_view.go index 2c608b01..da0e122b 100644 --- a/ir_ui_view.go +++ b/ir_ui_view.go @@ -100,7 +100,7 @@ func (c *Client) FindIrUiView(criteria *Criteria) (*IrUiView, error) { if iuvs != nil && len(*iuvs) > 0 { return &((*iuvs)[0]), nil } - return nil, fmt.Errorf("no ir.ui.view was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.ui.view was not found with criteria %v", criteria) } // FindIrUiViews finds ir.ui.view records by querying it @@ -132,5 +132,5 @@ func (c *Client) FindIrUiViewId(criteria *Criteria, options *Options) (int64, er if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.ui.view was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.ui.view was not found with criteria %v and options %v", criteria, options) } diff --git a/ir_ui_view_custom.go b/ir_ui_view_custom.go index cd000c01..1fc49087 100644 --- a/ir_ui_view_custom.go +++ b/ir_ui_view_custom.go @@ -85,7 +85,7 @@ func (c *Client) FindIrUiViewCustom(criteria *Criteria) (*IrUiViewCustom, error) if iuvcs != nil && len(*iuvcs) > 0 { return &((*iuvcs)[0]), nil } - return nil, fmt.Errorf("no ir.ui.view.custom was found with criteria %v", criteria) + return nil, fmt.Errorf("ir.ui.view.custom was not found with criteria %v", criteria) } // FindIrUiViewCustoms finds ir.ui.view.custom records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindIrUiViewCustomId(criteria *Criteria, options *Options) (int if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no ir.ui.view.custom was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("ir.ui.view.custom was not found with criteria %v and options %v", criteria, options) } diff --git a/link_tracker.go b/link_tracker.go index 83f56d3b..b6c2b971 100644 --- a/link_tracker.go +++ b/link_tracker.go @@ -98,7 +98,7 @@ func (c *Client) FindLinkTracker(criteria *Criteria) (*LinkTracker, error) { if lts != nil && len(*lts) > 0 { return &((*lts)[0]), nil } - return nil, fmt.Errorf("no link.tracker was found with criteria %v", criteria) + return nil, fmt.Errorf("link.tracker was not found with criteria %v", criteria) } // FindLinkTrackers finds link.tracker records by querying it @@ -130,5 +130,5 @@ func (c *Client) FindLinkTrackerId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no link.tracker was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("link.tracker was not found with criteria %v and options %v", criteria, options) } diff --git a/link_tracker_click.go b/link_tracker_click.go index 04aeb3f9..df94bc56 100644 --- a/link_tracker_click.go +++ b/link_tracker_click.go @@ -89,7 +89,7 @@ func (c *Client) FindLinkTrackerClick(criteria *Criteria) (*LinkTrackerClick, er if ltcs != nil && len(*ltcs) > 0 { return &((*ltcs)[0]), nil } - return nil, fmt.Errorf("no link.tracker.click was found with criteria %v", criteria) + return nil, fmt.Errorf("link.tracker.click was not found with criteria %v", criteria) } // FindLinkTrackerClicks finds link.tracker.click records by querying it @@ -121,5 +121,5 @@ func (c *Client) FindLinkTrackerClickId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no link.tracker.click was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("link.tracker.click was not found with criteria %v and options %v", criteria, options) } diff --git a/link_tracker_code.go b/link_tracker_code.go index 56ebc072..3a691047 100644 --- a/link_tracker_code.go +++ b/link_tracker_code.go @@ -84,7 +84,7 @@ func (c *Client) FindLinkTrackerCode(criteria *Criteria) (*LinkTrackerCode, erro if ltcs != nil && len(*ltcs) > 0 { return &((*ltcs)[0]), nil } - return nil, fmt.Errorf("no link.tracker.code was found with criteria %v", criteria) + return nil, fmt.Errorf("link.tracker.code was not found with criteria %v", criteria) } // FindLinkTrackerCodes finds link.tracker.code records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindLinkTrackerCodeId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no link.tracker.code was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("link.tracker.code was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_activity.go b/mail_activity.go index 5bf3748e..a8a1dfb8 100644 --- a/mail_activity.go +++ b/mail_activity.go @@ -99,7 +99,7 @@ func (c *Client) FindMailActivity(criteria *Criteria) (*MailActivity, error) { if mas != nil && len(*mas) > 0 { return &((*mas)[0]), nil } - return nil, fmt.Errorf("no mail.activity was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.activity was not found with criteria %v", criteria) } // FindMailActivitys finds mail.activity records by querying it @@ -131,5 +131,5 @@ func (c *Client) FindMailActivityId(criteria *Criteria, options *Options) (int64 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.activity was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.activity was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_activity_mixin.go b/mail_activity_mixin.go index e357e7a3..c5f47f24 100644 --- a/mail_activity_mixin.go +++ b/mail_activity_mixin.go @@ -84,7 +84,7 @@ func (c *Client) FindMailActivityMixin(criteria *Criteria) (*MailActivityMixin, if mams != nil && len(*mams) > 0 { return &((*mams)[0]), nil } - return nil, fmt.Errorf("no mail.activity.mixin was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.activity.mixin was not found with criteria %v", criteria) } // FindMailActivityMixins finds mail.activity.mixin records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindMailActivityMixinId(criteria *Criteria, options *Options) ( if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.activity.mixin was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.activity.mixin was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_activity_type.go b/mail_activity_type.go index f25849eb..ccde0da8 100644 --- a/mail_activity_type.go +++ b/mail_activity_type.go @@ -91,7 +91,7 @@ func (c *Client) FindMailActivityType(criteria *Criteria) (*MailActivityType, er if mats != nil && len(*mats) > 0 { return &((*mats)[0]), nil } - return nil, fmt.Errorf("no mail.activity.type was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.activity.type was not found with criteria %v", criteria) } // FindMailActivityTypes finds mail.activity.type records by querying it @@ -123,5 +123,5 @@ func (c *Client) FindMailActivityTypeId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.activity.type was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.activity.type was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_alias.go b/mail_alias.go index b5ae13c7..e76de4cb 100644 --- a/mail_alias.go +++ b/mail_alias.go @@ -91,7 +91,7 @@ func (c *Client) FindMailAlias(criteria *Criteria) (*MailAlias, error) { if mas != nil && len(*mas) > 0 { return &((*mas)[0]), nil } - return nil, fmt.Errorf("no mail.alias was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.alias was not found with criteria %v", criteria) } // FindMailAliass finds mail.alias records by querying it @@ -123,5 +123,5 @@ func (c *Client) FindMailAliasId(criteria *Criteria, options *Options) (int64, e if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.alias was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.alias was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_alias_mixin.go b/mail_alias_mixin.go index ea1c5974..d1266658 100644 --- a/mail_alias_mixin.go +++ b/mail_alias_mixin.go @@ -92,7 +92,7 @@ func (c *Client) FindMailAliasMixin(criteria *Criteria) (*MailAliasMixin, error) if mams != nil && len(*mams) > 0 { return &((*mams)[0]), nil } - return nil, fmt.Errorf("no mail.alias.mixin was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.alias.mixin was not found with criteria %v", criteria) } // FindMailAliasMixins finds mail.alias.mixin records by querying it @@ -124,5 +124,5 @@ func (c *Client) FindMailAliasMixinId(criteria *Criteria, options *Options) (int if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.alias.mixin was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.alias.mixin was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_channel.go b/mail_channel.go index f0fb141f..d408f2db 100644 --- a/mail_channel.go +++ b/mail_channel.go @@ -126,7 +126,7 @@ func (c *Client) FindMailChannel(criteria *Criteria) (*MailChannel, error) { if mcs != nil && len(*mcs) > 0 { return &((*mcs)[0]), nil } - return nil, fmt.Errorf("no mail.channel was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.channel was not found with criteria %v", criteria) } // FindMailChannels finds mail.channel records by querying it @@ -158,5 +158,5 @@ func (c *Client) FindMailChannelId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.channel was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.channel was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_channel_partner.go b/mail_channel_partner.go index 035345eb..9a361192 100644 --- a/mail_channel_partner.go +++ b/mail_channel_partner.go @@ -89,7 +89,7 @@ func (c *Client) FindMailChannelPartner(criteria *Criteria) (*MailChannelPartner if mcps != nil && len(*mcps) > 0 { return &((*mcps)[0]), nil } - return nil, fmt.Errorf("no mail.channel.partner was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.channel.partner was not found with criteria %v", criteria) } // FindMailChannelPartners finds mail.channel.partner records by querying it @@ -121,5 +121,5 @@ func (c *Client) FindMailChannelPartnerId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.channel.partner was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.channel.partner was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_compose_message.go b/mail_compose_message.go index d6c279ef..4f9f7d56 100644 --- a/mail_compose_message.go +++ b/mail_compose_message.go @@ -123,7 +123,7 @@ func (c *Client) FindMailComposeMessage(criteria *Criteria) (*MailComposeMessage if mcms != nil && len(*mcms) > 0 { return &((*mcms)[0]), nil } - return nil, fmt.Errorf("no mail.compose.message was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.compose.message was not found with criteria %v", criteria) } // FindMailComposeMessages finds mail.compose.message records by querying it @@ -155,5 +155,5 @@ func (c *Client) FindMailComposeMessageId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.compose.message was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.compose.message was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_followers.go b/mail_followers.go index 03e51bb4..1b497a95 100644 --- a/mail_followers.go +++ b/mail_followers.go @@ -83,7 +83,7 @@ func (c *Client) FindMailFollowers(criteria *Criteria) (*MailFollowers, error) { if mfs != nil && len(*mfs) > 0 { return &((*mfs)[0]), nil } - return nil, fmt.Errorf("no mail.followers was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.followers was not found with criteria %v", criteria) } // FindMailFollowerss finds mail.followers records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindMailFollowersId(criteria *Criteria, options *Options) (int6 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.followers was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.followers was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_mail.go b/mail_mail.go index 700bf8ae..67251666 100644 --- a/mail_mail.go +++ b/mail_mail.go @@ -126,7 +126,7 @@ func (c *Client) FindMailMail(criteria *Criteria) (*MailMail, error) { if mms != nil && len(*mms) > 0 { return &((*mms)[0]), nil } - return nil, fmt.Errorf("no mail.mail was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.mail was not found with criteria %v", criteria) } // FindMailMails finds mail.mail records by querying it @@ -158,5 +158,5 @@ func (c *Client) FindMailMailId(criteria *Criteria, options *Options) (int64, er if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.mail was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.mail was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_mail_statistics.go b/mail_mail_statistics.go index 463a2d0e..1711140d 100644 --- a/mail_mail_statistics.go +++ b/mail_mail_statistics.go @@ -100,7 +100,7 @@ func (c *Client) FindMailMailStatistics(criteria *Criteria) (*MailMailStatistics if mmss != nil && len(*mmss) > 0 { return &((*mmss)[0]), nil } - return nil, fmt.Errorf("no mail.mail.statistics was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.mail.statistics was not found with criteria %v", criteria) } // FindMailMailStatisticss finds mail.mail.statistics records by querying it @@ -132,5 +132,5 @@ func (c *Client) FindMailMailStatisticsId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.mail.statistics was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.mail.statistics was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_mass_mailing.go b/mail_mass_mailing.go index d3acb07b..af040b29 100644 --- a/mail_mass_mailing.go +++ b/mail_mass_mailing.go @@ -119,7 +119,7 @@ func (c *Client) FindMailMassMailing(criteria *Criteria) (*MailMassMailing, erro if mms != nil && len(*mms) > 0 { return &((*mms)[0]), nil } - return nil, fmt.Errorf("no mail.mass_mailing was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.mass_mailing was not found with criteria %v", criteria) } // FindMailMassMailings finds mail.mass_mailing records by querying it @@ -151,5 +151,5 @@ func (c *Client) FindMailMassMailingId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.mass_mailing was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.mass_mailing was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_mass_mailing_campaign.go b/mail_mass_mailing_campaign.go index b95fa9e8..63f8f7e6 100644 --- a/mail_mass_mailing_campaign.go +++ b/mail_mass_mailing_campaign.go @@ -106,7 +106,7 @@ func (c *Client) FindMailMassMailingCampaign(criteria *Criteria) (*MailMassMaili if mmcs != nil && len(*mmcs) > 0 { return &((*mmcs)[0]), nil } - return nil, fmt.Errorf("no mail.mass_mailing.campaign was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.mass_mailing.campaign was not found with criteria %v", criteria) } // FindMailMassMailingCampaigns finds mail.mass_mailing.campaign records by querying it @@ -138,5 +138,5 @@ func (c *Client) FindMailMassMailingCampaignId(criteria *Criteria, options *Opti if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.mass_mailing.campaign was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.mass_mailing.campaign was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_mass_mailing_contact.go b/mail_mass_mailing_contact.go index 8885fc34..808c3d5d 100644 --- a/mail_mass_mailing_contact.go +++ b/mail_mass_mailing_contact.go @@ -103,7 +103,7 @@ func (c *Client) FindMailMassMailingContact(criteria *Criteria) (*MailMassMailin if mmcs != nil && len(*mmcs) > 0 { return &((*mmcs)[0]), nil } - return nil, fmt.Errorf("no mail.mass_mailing.contact was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.mass_mailing.contact was not found with criteria %v", criteria) } // FindMailMassMailingContacts finds mail.mass_mailing.contact records by querying it @@ -135,5 +135,5 @@ func (c *Client) FindMailMassMailingContactId(criteria *Criteria, options *Optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.mass_mailing.contact was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.mass_mailing.contact was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_mass_mailing_list.go b/mail_mass_mailing_list.go index 25880563..9170a15d 100644 --- a/mail_mass_mailing_list.go +++ b/mail_mass_mailing_list.go @@ -85,7 +85,7 @@ func (c *Client) FindMailMassMailingList(criteria *Criteria) (*MailMassMailingLi if mmls != nil && len(*mmls) > 0 { return &((*mmls)[0]), nil } - return nil, fmt.Errorf("no mail.mass_mailing.list was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.mass_mailing.list was not found with criteria %v", criteria) } // FindMailMassMailingLists finds mail.mass_mailing.list records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindMailMassMailingListId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.mass_mailing.list was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.mass_mailing.list was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_mass_mailing_stage.go b/mail_mass_mailing_stage.go index 16fe7e0d..07046289 100644 --- a/mail_mass_mailing_stage.go +++ b/mail_mass_mailing_stage.go @@ -84,7 +84,7 @@ func (c *Client) FindMailMassMailingStage(criteria *Criteria) (*MailMassMailingS if mmss != nil && len(*mmss) > 0 { return &((*mmss)[0]), nil } - return nil, fmt.Errorf("no mail.mass_mailing.stage was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.mass_mailing.stage was not found with criteria %v", criteria) } // FindMailMassMailingStages finds mail.mass_mailing.stage records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindMailMassMailingStageId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.mass_mailing.stage was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.mass_mailing.stage was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_mass_mailing_tag.go b/mail_mass_mailing_tag.go index 805af9fb..d885fc90 100644 --- a/mail_mass_mailing_tag.go +++ b/mail_mass_mailing_tag.go @@ -84,7 +84,7 @@ func (c *Client) FindMailMassMailingTag(criteria *Criteria) (*MailMassMailingTag if mmts != nil && len(*mmts) > 0 { return &((*mmts)[0]), nil } - return nil, fmt.Errorf("no mail.mass_mailing.tag was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.mass_mailing.tag was not found with criteria %v", criteria) } // FindMailMassMailingTags finds mail.mass_mailing.tag records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindMailMassMailingTagId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.mass_mailing.tag was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.mass_mailing.tag was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_mass_mailing_test.go b/mail_mass_mailing_test.go index 6a2581b5..0daeb98f 100644 --- a/mail_mass_mailing_test.go +++ b/mail_mass_mailing_test.go @@ -84,7 +84,7 @@ func (c *Client) FindMailMassMailingTest(criteria *Criteria) (*MailMassMailingTe if mmts != nil && len(*mmts) > 0 { return &((*mmts)[0]), nil } - return nil, fmt.Errorf("no mail.mass_mailing.test was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.mass_mailing.test was not found with criteria %v", criteria) } // FindMailMassMailingTests finds mail.mass_mailing.test records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindMailMassMailingTestId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.mass_mailing.test was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.mass_mailing.test was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_message.go b/mail_message.go index a9170269..39bb72f0 100644 --- a/mail_message.go +++ b/mail_message.go @@ -111,7 +111,7 @@ func (c *Client) FindMailMessage(criteria *Criteria) (*MailMessage, error) { if mms != nil && len(*mms) > 0 { return &((*mms)[0]), nil } - return nil, fmt.Errorf("no mail.message was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.message was not found with criteria %v", criteria) } // FindMailMessages finds mail.message records by querying it @@ -143,5 +143,5 @@ func (c *Client) FindMailMessageId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.message was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.message was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_message_subtype.go b/mail_message_subtype.go index b4cc74fb..89a5ea67 100644 --- a/mail_message_subtype.go +++ b/mail_message_subtype.go @@ -91,7 +91,7 @@ func (c *Client) FindMailMessageSubtype(criteria *Criteria) (*MailMessageSubtype if mmss != nil && len(*mmss) > 0 { return &((*mmss)[0]), nil } - return nil, fmt.Errorf("no mail.message.subtype was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.message.subtype was not found with criteria %v", criteria) } // FindMailMessageSubtypes finds mail.message.subtype records by querying it @@ -123,5 +123,5 @@ func (c *Client) FindMailMessageSubtypeId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.message.subtype was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.message.subtype was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_notification.go b/mail_notification.go index 85572403..bcec65fb 100644 --- a/mail_notification.go +++ b/mail_notification.go @@ -83,7 +83,7 @@ func (c *Client) FindMailNotification(criteria *Criteria) (*MailNotification, er if mns != nil && len(*mns) > 0 { return &((*mns)[0]), nil } - return nil, fmt.Errorf("no mail.notification was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.notification was not found with criteria %v", criteria) } // FindMailNotifications finds mail.notification records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindMailNotificationId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.notification was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.notification was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_shortcode.go b/mail_shortcode.go index e949d50a..bc178457 100644 --- a/mail_shortcode.go +++ b/mail_shortcode.go @@ -87,7 +87,7 @@ func (c *Client) FindMailShortcode(criteria *Criteria) (*MailShortcode, error) { if mss != nil && len(*mss) > 0 { return &((*mss)[0]), nil } - return nil, fmt.Errorf("no mail.shortcode was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.shortcode was not found with criteria %v", criteria) } // FindMailShortcodes finds mail.shortcode records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindMailShortcodeId(criteria *Criteria, options *Options) (int6 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.shortcode was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.shortcode was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_statistics_report.go b/mail_statistics_report.go index 5328c6e1..35495403 100644 --- a/mail_statistics_report.go +++ b/mail_statistics_report.go @@ -88,7 +88,7 @@ func (c *Client) FindMailStatisticsReport(criteria *Criteria) (*MailStatisticsRe if msrs != nil && len(*msrs) > 0 { return &((*msrs)[0]), nil } - return nil, fmt.Errorf("no mail.statistics.report was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.statistics.report was not found with criteria %v", criteria) } // FindMailStatisticsReports finds mail.statistics.report records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindMailStatisticsReportId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.statistics.report was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.statistics.report was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_template.go b/mail_template.go index 002fbd76..cfad7610 100644 --- a/mail_template.go +++ b/mail_template.go @@ -107,7 +107,7 @@ func (c *Client) FindMailTemplate(criteria *Criteria) (*MailTemplate, error) { if mts != nil && len(*mts) > 0 { return &((*mts)[0]), nil } - return nil, fmt.Errorf("no mail.template was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.template was not found with criteria %v", criteria) } // FindMailTemplates finds mail.template records by querying it @@ -139,5 +139,5 @@ func (c *Client) FindMailTemplateId(criteria *Criteria, options *Options) (int64 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.template was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.template was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_test.go b/mail_test.go index d3d0ea8a..c4a3021b 100644 --- a/mail_test.go +++ b/mail_test.go @@ -105,7 +105,7 @@ func (c *Client) FindMailTest(criteria *Criteria) (*MailTest, error) { if mts != nil && len(*mts) > 0 { return &((*mts)[0]), nil } - return nil, fmt.Errorf("no mail.test was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.test was not found with criteria %v", criteria) } // FindMailTests finds mail.test records by querying it @@ -137,5 +137,5 @@ func (c *Client) FindMailTestId(criteria *Criteria, options *Options) (int64, er if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.test was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.test was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_test_simple.go b/mail_test_simple.go index d4fd4240..efe34f50 100644 --- a/mail_test_simple.go +++ b/mail_test_simple.go @@ -96,7 +96,7 @@ func (c *Client) FindMailTestSimple(criteria *Criteria) (*MailTestSimple, error) if mtss != nil && len(*mtss) > 0 { return &((*mtss)[0]), nil } - return nil, fmt.Errorf("no mail.test.simple was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.test.simple was not found with criteria %v", criteria) } // FindMailTestSimples finds mail.test.simple records by querying it @@ -128,5 +128,5 @@ func (c *Client) FindMailTestSimpleId(criteria *Criteria, options *Options) (int if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.test.simple was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.test.simple was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_thread.go b/mail_thread.go index 6515e5bc..5530e1dd 100644 --- a/mail_thread.go +++ b/mail_thread.go @@ -89,7 +89,7 @@ func (c *Client) FindMailThread(criteria *Criteria) (*MailThread, error) { if mts != nil && len(*mts) > 0 { return &((*mts)[0]), nil } - return nil, fmt.Errorf("no mail.thread was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.thread was not found with criteria %v", criteria) } // FindMailThreads finds mail.thread records by querying it @@ -121,5 +121,5 @@ func (c *Client) FindMailThreadId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.thread was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.thread was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_tracking_value.go b/mail_tracking_value.go index f85e44e8..23d85b13 100644 --- a/mail_tracking_value.go +++ b/mail_tracking_value.go @@ -98,7 +98,7 @@ func (c *Client) FindMailTrackingValue(criteria *Criteria) (*MailTrackingValue, if mtvs != nil && len(*mtvs) > 0 { return &((*mtvs)[0]), nil } - return nil, fmt.Errorf("no mail.tracking.value was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.tracking.value was not found with criteria %v", criteria) } // FindMailTrackingValues finds mail.tracking.value records by querying it @@ -130,5 +130,5 @@ func (c *Client) FindMailTrackingValueId(criteria *Criteria, options *Options) ( if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.tracking.value was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.tracking.value was not found with criteria %v and options %v", criteria, options) } diff --git a/mail_wizard_invite.go b/mail_wizard_invite.go index e3c8d8ed..6843b2f0 100644 --- a/mail_wizard_invite.go +++ b/mail_wizard_invite.go @@ -88,7 +88,7 @@ func (c *Client) FindMailWizardInvite(criteria *Criteria) (*MailWizardInvite, er if mwis != nil && len(*mwis) > 0 { return &((*mwis)[0]), nil } - return nil, fmt.Errorf("no mail.wizard.invite was found with criteria %v", criteria) + return nil, fmt.Errorf("mail.wizard.invite was not found with criteria %v", criteria) } // FindMailWizardInvites finds mail.wizard.invite records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindMailWizardInviteId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no mail.wizard.invite was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("mail.wizard.invite was not found with criteria %v and options %v", criteria, options) } diff --git a/payment_acquirer.go b/payment_acquirer.go index 9e4984d9..b4382668 100644 --- a/payment_acquirer.go +++ b/payment_acquirer.go @@ -117,7 +117,7 @@ func (c *Client) FindPaymentAcquirer(criteria *Criteria) (*PaymentAcquirer, erro if pas != nil && len(*pas) > 0 { return &((*pas)[0]), nil } - return nil, fmt.Errorf("no payment.acquirer was found with criteria %v", criteria) + return nil, fmt.Errorf("payment.acquirer was not found with criteria %v", criteria) } // FindPaymentAcquirers finds payment.acquirer records by querying it @@ -149,5 +149,5 @@ func (c *Client) FindPaymentAcquirerId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no payment.acquirer was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("payment.acquirer was not found with criteria %v and options %v", criteria, options) } diff --git a/payment_icon.go b/payment_icon.go index 0070b224..dd185c07 100644 --- a/payment_icon.go +++ b/payment_icon.go @@ -86,7 +86,7 @@ func (c *Client) FindPaymentIcon(criteria *Criteria) (*PaymentIcon, error) { if pis != nil && len(*pis) > 0 { return &((*pis)[0]), nil } - return nil, fmt.Errorf("no payment.icon was found with criteria %v", criteria) + return nil, fmt.Errorf("payment.icon was not found with criteria %v", criteria) } // FindPaymentIcons finds payment.icon records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindPaymentIconId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no payment.icon was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("payment.icon was not found with criteria %v and options %v", criteria, options) } diff --git a/payment_token.go b/payment_token.go index 98496f89..a0d46edf 100644 --- a/payment_token.go +++ b/payment_token.go @@ -90,7 +90,7 @@ func (c *Client) FindPaymentToken(criteria *Criteria) (*PaymentToken, error) { if pts != nil && len(*pts) > 0 { return &((*pts)[0]), nil } - return nil, fmt.Errorf("no payment.token was found with criteria %v", criteria) + return nil, fmt.Errorf("payment.token was not found with criteria %v", criteria) } // FindPaymentTokens finds payment.token records by querying it @@ -122,5 +122,5 @@ func (c *Client) FindPaymentTokenId(criteria *Criteria, options *Options) (int64 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no payment.token was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("payment.token was not found with criteria %v and options %v", criteria, options) } diff --git a/payment_transaction.go b/payment_transaction.go index 8bbcc111..f5a0226a 100644 --- a/payment_transaction.go +++ b/payment_transaction.go @@ -108,7 +108,7 @@ func (c *Client) FindPaymentTransaction(criteria *Criteria) (*PaymentTransaction if pts != nil && len(*pts) > 0 { return &((*pts)[0]), nil } - return nil, fmt.Errorf("no payment.transaction was found with criteria %v", criteria) + return nil, fmt.Errorf("payment.transaction was not found with criteria %v", criteria) } // FindPaymentTransactions finds payment.transaction records by querying it @@ -140,5 +140,5 @@ func (c *Client) FindPaymentTransactionId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no payment.transaction was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("payment.transaction was not found with criteria %v and options %v", criteria, options) } diff --git a/portal_mixin.go b/portal_mixin.go index e3f1baa4..416e1d6d 100644 --- a/portal_mixin.go +++ b/portal_mixin.go @@ -79,7 +79,7 @@ func (c *Client) FindPortalMixin(criteria *Criteria) (*PortalMixin, error) { if pms != nil && len(*pms) > 0 { return &((*pms)[0]), nil } - return nil, fmt.Errorf("no portal.mixin was found with criteria %v", criteria) + return nil, fmt.Errorf("portal.mixin was not found with criteria %v", criteria) } // FindPortalMixins finds portal.mixin records by querying it @@ -111,5 +111,5 @@ func (c *Client) FindPortalMixinId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no portal.mixin was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("portal.mixin was not found with criteria %v and options %v", criteria, options) } diff --git a/portal_wizard.go b/portal_wizard.go index 1f52a58d..f8ae3442 100644 --- a/portal_wizard.go +++ b/portal_wizard.go @@ -85,7 +85,7 @@ func (c *Client) FindPortalWizard(criteria *Criteria) (*PortalWizard, error) { if pws != nil && len(*pws) > 0 { return &((*pws)[0]), nil } - return nil, fmt.Errorf("no portal.wizard was found with criteria %v", criteria) + return nil, fmt.Errorf("portal.wizard was not found with criteria %v", criteria) } // FindPortalWizards finds portal.wizard records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindPortalWizardId(criteria *Criteria, options *Options) (int64 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no portal.wizard was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("portal.wizard was not found with criteria %v and options %v", criteria, options) } diff --git a/portal_wizard_user.go b/portal_wizard_user.go index 240a825b..f784e85e 100644 --- a/portal_wizard_user.go +++ b/portal_wizard_user.go @@ -87,7 +87,7 @@ func (c *Client) FindPortalWizardUser(criteria *Criteria) (*PortalWizardUser, er if pwus != nil && len(*pwus) > 0 { return &((*pwus)[0]), nil } - return nil, fmt.Errorf("no portal.wizard.user was found with criteria %v", criteria) + return nil, fmt.Errorf("portal.wizard.user was not found with criteria %v", criteria) } // FindPortalWizardUsers finds portal.wizard.user records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindPortalWizardUserId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no portal.wizard.user was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("portal.wizard.user was not found with criteria %v and options %v", criteria, options) } diff --git a/procurement_group.go b/procurement_group.go index bcdb7637..a30cf188 100644 --- a/procurement_group.go +++ b/procurement_group.go @@ -86,7 +86,7 @@ func (c *Client) FindProcurementGroup(criteria *Criteria) (*ProcurementGroup, er if pgs != nil && len(*pgs) > 0 { return &((*pgs)[0]), nil } - return nil, fmt.Errorf("no procurement.group was found with criteria %v", criteria) + return nil, fmt.Errorf("procurement.group was not found with criteria %v", criteria) } // FindProcurementGroups finds procurement.group records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindProcurementGroupId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no procurement.group was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("procurement.group was not found with criteria %v and options %v", criteria, options) } diff --git a/procurement_rule.go b/procurement_rule.go index 97085c8b..715bce3c 100644 --- a/procurement_rule.go +++ b/procurement_rule.go @@ -100,7 +100,7 @@ func (c *Client) FindProcurementRule(criteria *Criteria) (*ProcurementRule, erro if prs != nil && len(*prs) > 0 { return &((*prs)[0]), nil } - return nil, fmt.Errorf("no procurement.rule was found with criteria %v", criteria) + return nil, fmt.Errorf("procurement.rule was not found with criteria %v", criteria) } // FindProcurementRules finds procurement.rule records by querying it @@ -132,5 +132,5 @@ func (c *Client) FindProcurementRuleId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no procurement.rule was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("procurement.rule was not found with criteria %v and options %v", criteria, options) } diff --git a/product_attribute.go b/product_attribute.go index e992c9d6..222ac26f 100644 --- a/product_attribute.go +++ b/product_attribute.go @@ -87,7 +87,7 @@ func (c *Client) FindProductAttribute(criteria *Criteria) (*ProductAttribute, er if pas != nil && len(*pas) > 0 { return &((*pas)[0]), nil } - return nil, fmt.Errorf("no product.attribute was found with criteria %v", criteria) + return nil, fmt.Errorf("product.attribute was not found with criteria %v", criteria) } // FindProductAttributes finds product.attribute records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindProductAttributeId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no product.attribute was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("product.attribute was not found with criteria %v and options %v", criteria, options) } diff --git a/product_attribute_line.go b/product_attribute_line.go index 38728e13..f7a40dc3 100644 --- a/product_attribute_line.go +++ b/product_attribute_line.go @@ -85,7 +85,7 @@ func (c *Client) FindProductAttributeLine(criteria *Criteria) (*ProductAttribute if pals != nil && len(*pals) > 0 { return &((*pals)[0]), nil } - return nil, fmt.Errorf("no product.attribute.line was found with criteria %v", criteria) + return nil, fmt.Errorf("product.attribute.line was not found with criteria %v", criteria) } // FindProductAttributeLines finds product.attribute.line records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindProductAttributeLineId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no product.attribute.line was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("product.attribute.line was not found with criteria %v and options %v", criteria, options) } diff --git a/product_attribute_price.go b/product_attribute_price.go index 3caaa563..0fe2803c 100644 --- a/product_attribute_price.go +++ b/product_attribute_price.go @@ -85,7 +85,7 @@ func (c *Client) FindProductAttributePrice(criteria *Criteria) (*ProductAttribut if paps != nil && len(*paps) > 0 { return &((*paps)[0]), nil } - return nil, fmt.Errorf("no product.attribute.price was found with criteria %v", criteria) + return nil, fmt.Errorf("product.attribute.price was not found with criteria %v", criteria) } // FindProductAttributePrices finds product.attribute.price records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindProductAttributePriceId(criteria *Criteria, options *Option if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no product.attribute.price was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("product.attribute.price was not found with criteria %v and options %v", criteria, options) } diff --git a/product_attribute_value.go b/product_attribute_value.go index 7c0c8ff9..69667586 100644 --- a/product_attribute_value.go +++ b/product_attribute_value.go @@ -88,7 +88,7 @@ func (c *Client) FindProductAttributeValue(criteria *Criteria) (*ProductAttribut if pavs != nil && len(*pavs) > 0 { return &((*pavs)[0]), nil } - return nil, fmt.Errorf("no product.attribute.value was found with criteria %v", criteria) + return nil, fmt.Errorf("product.attribute.value was not found with criteria %v", criteria) } // FindProductAttributeValues finds product.attribute.value records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindProductAttributeValueId(criteria *Criteria, options *Option if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no product.attribute.value was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("product.attribute.value was not found with criteria %v and options %v", criteria, options) } diff --git a/product_category.go b/product_category.go index 850c3daf..c576cc55 100644 --- a/product_category.go +++ b/product_category.go @@ -101,7 +101,7 @@ func (c *Client) FindProductCategory(criteria *Criteria) (*ProductCategory, erro if pcs != nil && len(*pcs) > 0 { return &((*pcs)[0]), nil } - return nil, fmt.Errorf("no product.category was found with criteria %v", criteria) + return nil, fmt.Errorf("product.category was not found with criteria %v", criteria) } // FindProductCategorys finds product.category records by querying it @@ -133,5 +133,5 @@ func (c *Client) FindProductCategoryId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no product.category was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("product.category was not found with criteria %v and options %v", criteria, options) } diff --git a/product_packaging.go b/product_packaging.go index 913448e5..36c6f21c 100644 --- a/product_packaging.go +++ b/product_packaging.go @@ -87,7 +87,7 @@ func (c *Client) FindProductPackaging(criteria *Criteria) (*ProductPackaging, er if pps != nil && len(*pps) > 0 { return &((*pps)[0]), nil } - return nil, fmt.Errorf("no product.packaging was found with criteria %v", criteria) + return nil, fmt.Errorf("product.packaging was not found with criteria %v", criteria) } // FindProductPackagings finds product.packaging records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindProductPackagingId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no product.packaging was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("product.packaging was not found with criteria %v and options %v", criteria, options) } diff --git a/product_price_history.go b/product_price_history.go index 8e55d72b..cc60ca99 100644 --- a/product_price_history.go +++ b/product_price_history.go @@ -86,7 +86,7 @@ func (c *Client) FindProductPriceHistory(criteria *Criteria) (*ProductPriceHisto if pphs != nil && len(*pphs) > 0 { return &((*pphs)[0]), nil } - return nil, fmt.Errorf("no product.price.history was found with criteria %v", criteria) + return nil, fmt.Errorf("product.price.history was not found with criteria %v", criteria) } // FindProductPriceHistorys finds product.price.history records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindProductPriceHistoryId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no product.price.history was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("product.price.history was not found with criteria %v and options %v", criteria, options) } diff --git a/product_price_list.go b/product_price_list.go index 2738a017..e3c8c8d0 100644 --- a/product_price_list.go +++ b/product_price_list.go @@ -88,7 +88,7 @@ func (c *Client) FindProductPriceList(criteria *Criteria) (*ProductPriceList, er if pps != nil && len(*pps) > 0 { return &((*pps)[0]), nil } - return nil, fmt.Errorf("no product.price_list was found with criteria %v", criteria) + return nil, fmt.Errorf("product.price_list was not found with criteria %v", criteria) } // FindProductPriceLists finds product.price_list records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindProductPriceListId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no product.price_list was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("product.price_list was not found with criteria %v and options %v", criteria, options) } diff --git a/product_pricelist.go b/product_pricelist.go index 36fc4b0c..0ac3f880 100644 --- a/product_pricelist.go +++ b/product_pricelist.go @@ -90,7 +90,7 @@ func (c *Client) FindProductPricelist(criteria *Criteria) (*ProductPricelist, er if pps != nil && len(*pps) > 0 { return &((*pps)[0]), nil } - return nil, fmt.Errorf("no product.pricelist was found with criteria %v", criteria) + return nil, fmt.Errorf("product.pricelist was not found with criteria %v", criteria) } // FindProductPricelists finds product.pricelist records by querying it @@ -122,5 +122,5 @@ func (c *Client) FindProductPricelistId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no product.pricelist was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("product.pricelist was not found with criteria %v and options %v", criteria, options) } diff --git a/product_pricelist_item.go b/product_pricelist_item.go index 1923ec69..b8e6c595 100644 --- a/product_pricelist_item.go +++ b/product_pricelist_item.go @@ -104,7 +104,7 @@ func (c *Client) FindProductPricelistItem(criteria *Criteria) (*ProductPricelist if ppis != nil && len(*ppis) > 0 { return &((*ppis)[0]), nil } - return nil, fmt.Errorf("no product.pricelist.item was found with criteria %v", criteria) + return nil, fmt.Errorf("product.pricelist.item was not found with criteria %v", criteria) } // FindProductPricelistItems finds product.pricelist.item records by querying it @@ -136,5 +136,5 @@ func (c *Client) FindProductPricelistItemId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no product.pricelist.item was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("product.pricelist.item was not found with criteria %v and options %v", criteria, options) } diff --git a/product_product.go b/product_product.go index c662ceff..e4b63d99 100644 --- a/product_product.go +++ b/product_product.go @@ -193,7 +193,7 @@ func (c *Client) FindProductProduct(criteria *Criteria) (*ProductProduct, error) if pps != nil && len(*pps) > 0 { return &((*pps)[0]), nil } - return nil, fmt.Errorf("no product.product was found with criteria %v", criteria) + return nil, fmt.Errorf("product.product was not found with criteria %v", criteria) } // FindProductProducts finds product.product records by querying it @@ -225,5 +225,5 @@ func (c *Client) FindProductProductId(criteria *Criteria, options *Options) (int if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no product.product was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("product.product was not found with criteria %v and options %v", criteria, options) } diff --git a/product_putaway.go b/product_putaway.go index 160d5053..4a0f9147 100644 --- a/product_putaway.go +++ b/product_putaway.go @@ -84,7 +84,7 @@ func (c *Client) FindProductPutaway(criteria *Criteria) (*ProductPutaway, error) if pps != nil && len(*pps) > 0 { return &((*pps)[0]), nil } - return nil, fmt.Errorf("no product.putaway was found with criteria %v", criteria) + return nil, fmt.Errorf("product.putaway was not found with criteria %v", criteria) } // FindProductPutaways finds product.putaway records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindProductPutawayId(criteria *Criteria, options *Options) (int if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no product.putaway was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("product.putaway was not found with criteria %v and options %v", criteria, options) } diff --git a/product_removal.go b/product_removal.go index fa8d55a1..1d494844 100644 --- a/product_removal.go +++ b/product_removal.go @@ -84,7 +84,7 @@ func (c *Client) FindProductRemoval(criteria *Criteria) (*ProductRemoval, error) if prs != nil && len(*prs) > 0 { return &((*prs)[0]), nil } - return nil, fmt.Errorf("no product.removal was found with criteria %v", criteria) + return nil, fmt.Errorf("product.removal was not found with criteria %v", criteria) } // FindProductRemovals finds product.removal records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindProductRemovalId(criteria *Criteria, options *Options) (int if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no product.removal was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("product.removal was not found with criteria %v and options %v", criteria, options) } diff --git a/product_supplierinfo.go b/product_supplierinfo.go index e584720e..6c83ccb2 100644 --- a/product_supplierinfo.go +++ b/product_supplierinfo.go @@ -97,7 +97,7 @@ func (c *Client) FindProductSupplierinfo(criteria *Criteria) (*ProductSupplierin if pss != nil && len(*pss) > 0 { return &((*pss)[0]), nil } - return nil, fmt.Errorf("no product.supplierinfo was found with criteria %v", criteria) + return nil, fmt.Errorf("product.supplierinfo was not found with criteria %v", criteria) } // FindProductSupplierinfos finds product.supplierinfo records by querying it @@ -129,5 +129,5 @@ func (c *Client) FindProductSupplierinfoId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no product.supplierinfo was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("product.supplierinfo was not found with criteria %v and options %v", criteria, options) } diff --git a/product_template.go b/product_template.go index f8228073..89c5d5cc 100644 --- a/product_template.go +++ b/product_template.go @@ -179,7 +179,7 @@ func (c *Client) FindProductTemplate(criteria *Criteria) (*ProductTemplate, erro if pts != nil && len(*pts) > 0 { return &((*pts)[0]), nil } - return nil, fmt.Errorf("no product.template was found with criteria %v", criteria) + return nil, fmt.Errorf("product.template was not found with criteria %v", criteria) } // FindProductTemplates finds product.template records by querying it @@ -211,5 +211,5 @@ func (c *Client) FindProductTemplateId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no product.template was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("product.template was not found with criteria %v and options %v", criteria, options) } diff --git a/product_uom.go b/product_uom.go index 1eb205ef..62e1a93e 100644 --- a/product_uom.go +++ b/product_uom.go @@ -89,7 +89,7 @@ func (c *Client) FindProductUom(criteria *Criteria) (*ProductUom, error) { if pus != nil && len(*pus) > 0 { return &((*pus)[0]), nil } - return nil, fmt.Errorf("no product.uom was found with criteria %v", criteria) + return nil, fmt.Errorf("product.uom was not found with criteria %v", criteria) } // FindProductUoms finds product.uom records by querying it @@ -121,5 +121,5 @@ func (c *Client) FindProductUomId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no product.uom was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("product.uom was not found with criteria %v and options %v", criteria, options) } diff --git a/product_uom_categ.go b/product_uom_categ.go index 8018bedd..f14cc575 100644 --- a/product_uom_categ.go +++ b/product_uom_categ.go @@ -83,7 +83,7 @@ func (c *Client) FindProductUomCateg(criteria *Criteria) (*ProductUomCateg, erro if pucs != nil && len(*pucs) > 0 { return &((*pucs)[0]), nil } - return nil, fmt.Errorf("no product.uom.categ was found with criteria %v", criteria) + return nil, fmt.Errorf("product.uom.categ was not found with criteria %v", criteria) } // FindProductUomCategs finds product.uom.categ records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindProductUomCategId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no product.uom.categ was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("product.uom.categ was not found with criteria %v and options %v", criteria, options) } diff --git a/project_project.go b/project_project.go index c5d17e65..15225bfe 100644 --- a/project_project.go +++ b/project_project.go @@ -140,7 +140,7 @@ func (c *Client) FindProjectProject(criteria *Criteria) (*ProjectProject, error) if pps != nil && len(*pps) > 0 { return &((*pps)[0]), nil } - return nil, fmt.Errorf("no project.project was found with criteria %v", criteria) + return nil, fmt.Errorf("project.project was not found with criteria %v", criteria) } // FindProjectProjects finds project.project records by querying it @@ -172,5 +172,5 @@ func (c *Client) FindProjectProjectId(criteria *Criteria, options *Options) (int if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no project.project was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("project.project was not found with criteria %v and options %v", criteria, options) } diff --git a/project_tags.go b/project_tags.go index 6552aef7..f7cb8a92 100644 --- a/project_tags.go +++ b/project_tags.go @@ -84,7 +84,7 @@ func (c *Client) FindProjectTags(criteria *Criteria) (*ProjectTags, error) { if pts != nil && len(*pts) > 0 { return &((*pts)[0]), nil } - return nil, fmt.Errorf("no project.tags was found with criteria %v", criteria) + return nil, fmt.Errorf("project.tags was not found with criteria %v", criteria) } // FindProjectTagss finds project.tags records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindProjectTagsId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no project.tags was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("project.tags was not found with criteria %v and options %v", criteria, options) } diff --git a/project_task.go b/project_task.go index e1c732ca..8e6a6803 100644 --- a/project_task.go +++ b/project_task.go @@ -147,7 +147,7 @@ func (c *Client) FindProjectTask(criteria *Criteria) (*ProjectTask, error) { if pts != nil && len(*pts) > 0 { return &((*pts)[0]), nil } - return nil, fmt.Errorf("no project.task was found with criteria %v", criteria) + return nil, fmt.Errorf("project.task was not found with criteria %v", criteria) } // FindProjectTasks finds project.task records by querying it @@ -179,5 +179,5 @@ func (c *Client) FindProjectTaskId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no project.task was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("project.task was not found with criteria %v and options %v", criteria, options) } diff --git a/project_task_merge_wizard.go b/project_task_merge_wizard.go index dc1827cd..8f2b48cd 100644 --- a/project_task_merge_wizard.go +++ b/project_task_merge_wizard.go @@ -88,7 +88,7 @@ func (c *Client) FindProjectTaskMergeWizard(criteria *Criteria) (*ProjectTaskMer if ptmws != nil && len(*ptmws) > 0 { return &((*ptmws)[0]), nil } - return nil, fmt.Errorf("no project.task.merge.wizard was found with criteria %v", criteria) + return nil, fmt.Errorf("project.task.merge.wizard was not found with criteria %v", criteria) } // FindProjectTaskMergeWizards finds project.task.merge.wizard records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindProjectTaskMergeWizardId(criteria *Criteria, options *Optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no project.task.merge.wizard was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("project.task.merge.wizard was not found with criteria %v and options %v", criteria, options) } diff --git a/project_task_type.go b/project_task_type.go index 0c140838..c6e921cf 100644 --- a/project_task_type.go +++ b/project_task_type.go @@ -92,7 +92,7 @@ func (c *Client) FindProjectTaskType(criteria *Criteria) (*ProjectTaskType, erro if ptts != nil && len(*ptts) > 0 { return &((*ptts)[0]), nil } - return nil, fmt.Errorf("no project.task.type was found with criteria %v", criteria) + return nil, fmt.Errorf("project.task.type was not found with criteria %v", criteria) } // FindProjectTaskTypes finds project.task.type records by querying it @@ -124,5 +124,5 @@ func (c *Client) FindProjectTaskTypeId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no project.task.type was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("project.task.type was not found with criteria %v and options %v", criteria, options) } diff --git a/publisher_warranty_contract.go b/publisher_warranty_contract.go index 5df64ce1..a7ae9472 100644 --- a/publisher_warranty_contract.go +++ b/publisher_warranty_contract.go @@ -78,7 +78,7 @@ func (c *Client) FindPublisherWarrantyContract(criteria *Criteria) (*PublisherWa if pcs != nil && len(*pcs) > 0 { return &((*pcs)[0]), nil } - return nil, fmt.Errorf("no publisher_warranty.contract was found with criteria %v", criteria) + return nil, fmt.Errorf("publisher_warranty.contract was not found with criteria %v", criteria) } // FindPublisherWarrantyContracts finds publisher_warranty.contract records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindPublisherWarrantyContractId(criteria *Criteria, options *Op if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no publisher_warranty.contract was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("publisher_warranty.contract was not found with criteria %v and options %v", criteria, options) } diff --git a/purchase_order.go b/purchase_order.go index 55217ba5..53ce1af8 100644 --- a/purchase_order.go +++ b/purchase_order.go @@ -129,7 +129,7 @@ func (c *Client) FindPurchaseOrder(criteria *Criteria) (*PurchaseOrder, error) { if pos != nil && len(*pos) > 0 { return &((*pos)[0]), nil } - return nil, fmt.Errorf("no purchase.order was found with criteria %v", criteria) + return nil, fmt.Errorf("purchase.order was not found with criteria %v", criteria) } // FindPurchaseOrders finds purchase.order records by querying it @@ -161,5 +161,5 @@ func (c *Client) FindPurchaseOrderId(criteria *Criteria, options *Options) (int6 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no purchase.order was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("purchase.order was not found with criteria %v and options %v", criteria, options) } diff --git a/purchase_order_line.go b/purchase_order_line.go index 28a62459..ee1ee45b 100644 --- a/purchase_order_line.go +++ b/purchase_order_line.go @@ -108,7 +108,7 @@ func (c *Client) FindPurchaseOrderLine(criteria *Criteria) (*PurchaseOrderLine, if pols != nil && len(*pols) > 0 { return &((*pols)[0]), nil } - return nil, fmt.Errorf("no purchase.order.line was found with criteria %v", criteria) + return nil, fmt.Errorf("purchase.order.line was not found with criteria %v", criteria) } // FindPurchaseOrderLines finds purchase.order.line records by querying it @@ -140,5 +140,5 @@ func (c *Client) FindPurchaseOrderLineId(criteria *Criteria, options *Options) ( if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no purchase.order.line was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("purchase.order.line was not found with criteria %v and options %v", criteria, options) } diff --git a/purchase_report.go b/purchase_report.go index 6ff65b7f..0a5392e1 100644 --- a/purchase_report.go +++ b/purchase_report.go @@ -104,7 +104,7 @@ func (c *Client) FindPurchaseReport(criteria *Criteria) (*PurchaseReport, error) if prs != nil && len(*prs) > 0 { return &((*prs)[0]), nil } - return nil, fmt.Errorf("no purchase.report was found with criteria %v", criteria) + return nil, fmt.Errorf("purchase.report was not found with criteria %v", criteria) } // FindPurchaseReports finds purchase.report records by querying it @@ -136,5 +136,5 @@ func (c *Client) FindPurchaseReportId(criteria *Criteria, options *Options) (int if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no purchase.report was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("purchase.report was not found with criteria %v and options %v", criteria, options) } diff --git a/queue_job.go b/queue_job.go index 370ea480..c9b4df15 100644 --- a/queue_job.go +++ b/queue_job.go @@ -119,7 +119,7 @@ func (c *Client) FindQueueJob(criteria *Criteria) (*QueueJob, error) { if qjs != nil && len(*qjs) > 0 { return &((*qjs)[0]), nil } - return nil, fmt.Errorf("no queue.job was found with criteria %v", criteria) + return nil, fmt.Errorf("queue.job was not found with criteria %v", criteria) } // FindQueueJobs finds queue.job records by querying it @@ -151,5 +151,5 @@ func (c *Client) FindQueueJobId(criteria *Criteria, options *Options) (int64, er if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no queue.job was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("queue.job was not found with criteria %v and options %v", criteria, options) } diff --git a/queue_job_channel.go b/queue_job_channel.go index fdfbbdd5..d613ff4a 100644 --- a/queue_job_channel.go +++ b/queue_job_channel.go @@ -86,7 +86,7 @@ func (c *Client) FindQueueJobChannel(criteria *Criteria) (*QueueJobChannel, erro if qjcs != nil && len(*qjcs) > 0 { return &((*qjcs)[0]), nil } - return nil, fmt.Errorf("no queue.job.channel was found with criteria %v", criteria) + return nil, fmt.Errorf("queue.job.channel was not found with criteria %v", criteria) } // FindQueueJobChannels finds queue.job.channel records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindQueueJobChannelId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no queue.job.channel was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("queue.job.channel was not found with criteria %v and options %v", criteria, options) } diff --git a/queue_job_function.go b/queue_job_function.go index 80da384b..e75ca65f 100644 --- a/queue_job_function.go +++ b/queue_job_function.go @@ -81,7 +81,7 @@ func (c *Client) FindQueueJobFunction(criteria *Criteria) (*QueueJobFunction, er if qjfs != nil && len(*qjfs) > 0 { return &((*qjfs)[0]), nil } - return nil, fmt.Errorf("no queue.job.function was found with criteria %v", criteria) + return nil, fmt.Errorf("queue.job.function was not found with criteria %v", criteria) } // FindQueueJobFunctions finds queue.job.function records by querying it @@ -113,5 +113,5 @@ func (c *Client) FindQueueJobFunctionId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no queue.job.function was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("queue.job.function was not found with criteria %v and options %v", criteria, options) } diff --git a/queue_requeue_job.go b/queue_requeue_job.go index 9a5e71a1..b9595527 100644 --- a/queue_requeue_job.go +++ b/queue_requeue_job.go @@ -83,7 +83,7 @@ func (c *Client) FindQueueRequeueJob(criteria *Criteria) (*QueueRequeueJob, erro if qrjs != nil && len(*qrjs) > 0 { return &((*qrjs)[0]), nil } - return nil, fmt.Errorf("no queue.requeue.job was found with criteria %v", criteria) + return nil, fmt.Errorf("queue.requeue.job was not found with criteria %v", criteria) } // FindQueueRequeueJobs finds queue.requeue.job records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindQueueRequeueJobId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no queue.requeue.job was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("queue.requeue.job was not found with criteria %v and options %v", criteria, options) } diff --git a/rating_mixin.go b/rating_mixin.go index d9dfaa58..59497de6 100644 --- a/rating_mixin.go +++ b/rating_mixin.go @@ -83,7 +83,7 @@ func (c *Client) FindRatingMixin(criteria *Criteria) (*RatingMixin, error) { if rms != nil && len(*rms) > 0 { return &((*rms)[0]), nil } - return nil, fmt.Errorf("no rating.mixin was found with criteria %v", criteria) + return nil, fmt.Errorf("rating.mixin was not found with criteria %v", criteria) } // FindRatingMixins finds rating.mixin records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindRatingMixinId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no rating.mixin was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("rating.mixin was not found with criteria %v and options %v", criteria, options) } diff --git a/rating_rating.go b/rating_rating.go index 6dfa1238..611c33c9 100644 --- a/rating_rating.go +++ b/rating_rating.go @@ -99,7 +99,7 @@ func (c *Client) FindRatingRating(criteria *Criteria) (*RatingRating, error) { if rrs != nil && len(*rrs) > 0 { return &((*rrs)[0]), nil } - return nil, fmt.Errorf("no rating.rating was found with criteria %v", criteria) + return nil, fmt.Errorf("rating.rating was not found with criteria %v", criteria) } // FindRatingRatings finds rating.rating records by querying it @@ -131,5 +131,5 @@ func (c *Client) FindRatingRatingId(criteria *Criteria, options *Options) (int64 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no rating.rating was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("rating.rating was not found with criteria %v and options %v", criteria, options) } diff --git a/report_account_report_agedpartnerbalance.go b/report_account_report_agedpartnerbalance.go index a8b3d4e9..d991e7fb 100644 --- a/report_account_report_agedpartnerbalance.go +++ b/report_account_report_agedpartnerbalance.go @@ -78,7 +78,7 @@ func (c *Client) FindReportAccountReportAgedpartnerbalance(criteria *Criteria) ( if rars != nil && len(*rars) > 0 { return &((*rars)[0]), nil } - return nil, fmt.Errorf("no report.account.report_agedpartnerbalance was found with criteria %v", criteria) + return nil, fmt.Errorf("report.account.report_agedpartnerbalance was not found with criteria %v", criteria) } // FindReportAccountReportAgedpartnerbalances finds report.account.report_agedpartnerbalance records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindReportAccountReportAgedpartnerbalanceId(criteria *Criteria, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no report.account.report_agedpartnerbalance was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("report.account.report_agedpartnerbalance was not found with criteria %v and options %v", criteria, options) } diff --git a/report_account_report_financial.go b/report_account_report_financial.go index f5a61b0a..900d3669 100644 --- a/report_account_report_financial.go +++ b/report_account_report_financial.go @@ -78,7 +78,7 @@ func (c *Client) FindReportAccountReportFinancial(criteria *Criteria) (*ReportAc if rars != nil && len(*rars) > 0 { return &((*rars)[0]), nil } - return nil, fmt.Errorf("no report.account.report_financial was found with criteria %v", criteria) + return nil, fmt.Errorf("report.account.report_financial was not found with criteria %v", criteria) } // FindReportAccountReportFinancials finds report.account.report_financial records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindReportAccountReportFinancialId(criteria *Criteria, options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no report.account.report_financial was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("report.account.report_financial was not found with criteria %v and options %v", criteria, options) } diff --git a/report_account_report_generalledger.go b/report_account_report_generalledger.go index 3df302d2..388028df 100644 --- a/report_account_report_generalledger.go +++ b/report_account_report_generalledger.go @@ -78,7 +78,7 @@ func (c *Client) FindReportAccountReportGeneralledger(criteria *Criteria) (*Repo if rars != nil && len(*rars) > 0 { return &((*rars)[0]), nil } - return nil, fmt.Errorf("no report.account.report_generalledger was found with criteria %v", criteria) + return nil, fmt.Errorf("report.account.report_generalledger was not found with criteria %v", criteria) } // FindReportAccountReportGeneralledgers finds report.account.report_generalledger records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindReportAccountReportGeneralledgerId(criteria *Criteria, opti if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no report.account.report_generalledger was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("report.account.report_generalledger was not found with criteria %v and options %v", criteria, options) } diff --git a/report_account_report_journal.go b/report_account_report_journal.go index b8c63e59..ae08cf68 100644 --- a/report_account_report_journal.go +++ b/report_account_report_journal.go @@ -78,7 +78,7 @@ func (c *Client) FindReportAccountReportJournal(criteria *Criteria) (*ReportAcco if rars != nil && len(*rars) > 0 { return &((*rars)[0]), nil } - return nil, fmt.Errorf("no report.account.report_journal was found with criteria %v", criteria) + return nil, fmt.Errorf("report.account.report_journal was not found with criteria %v", criteria) } // FindReportAccountReportJournals finds report.account.report_journal records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindReportAccountReportJournalId(criteria *Criteria, options *O if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no report.account.report_journal was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("report.account.report_journal was not found with criteria %v and options %v", criteria, options) } diff --git a/report_account_report_overdue.go b/report_account_report_overdue.go index 01ee3adb..3a884c5f 100644 --- a/report_account_report_overdue.go +++ b/report_account_report_overdue.go @@ -78,7 +78,7 @@ func (c *Client) FindReportAccountReportOverdue(criteria *Criteria) (*ReportAcco if rars != nil && len(*rars) > 0 { return &((*rars)[0]), nil } - return nil, fmt.Errorf("no report.account.report_overdue was found with criteria %v", criteria) + return nil, fmt.Errorf("report.account.report_overdue was not found with criteria %v", criteria) } // FindReportAccountReportOverdues finds report.account.report_overdue records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindReportAccountReportOverdueId(criteria *Criteria, options *O if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no report.account.report_overdue was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("report.account.report_overdue was not found with criteria %v and options %v", criteria, options) } diff --git a/report_account_report_partnerledger.go b/report_account_report_partnerledger.go index c6401cd7..c0810ebe 100644 --- a/report_account_report_partnerledger.go +++ b/report_account_report_partnerledger.go @@ -78,7 +78,7 @@ func (c *Client) FindReportAccountReportPartnerledger(criteria *Criteria) (*Repo if rars != nil && len(*rars) > 0 { return &((*rars)[0]), nil } - return nil, fmt.Errorf("no report.account.report_partnerledger was found with criteria %v", criteria) + return nil, fmt.Errorf("report.account.report_partnerledger was not found with criteria %v", criteria) } // FindReportAccountReportPartnerledgers finds report.account.report_partnerledger records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindReportAccountReportPartnerledgerId(criteria *Criteria, opti if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no report.account.report_partnerledger was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("report.account.report_partnerledger was not found with criteria %v and options %v", criteria, options) } diff --git a/report_account_report_tax.go b/report_account_report_tax.go index 56d289b8..7b1f7abe 100644 --- a/report_account_report_tax.go +++ b/report_account_report_tax.go @@ -78,7 +78,7 @@ func (c *Client) FindReportAccountReportTax(criteria *Criteria) (*ReportAccountR if rars != nil && len(*rars) > 0 { return &((*rars)[0]), nil } - return nil, fmt.Errorf("no report.account.report_tax was found with criteria %v", criteria) + return nil, fmt.Errorf("report.account.report_tax was not found with criteria %v", criteria) } // FindReportAccountReportTaxs finds report.account.report_tax records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindReportAccountReportTaxId(criteria *Criteria, options *Optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no report.account.report_tax was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("report.account.report_tax was not found with criteria %v and options %v", criteria, options) } diff --git a/report_account_report_trialbalance.go b/report_account_report_trialbalance.go index d228980d..800abe87 100644 --- a/report_account_report_trialbalance.go +++ b/report_account_report_trialbalance.go @@ -78,7 +78,7 @@ func (c *Client) FindReportAccountReportTrialbalance(criteria *Criteria) (*Repor if rars != nil && len(*rars) > 0 { return &((*rars)[0]), nil } - return nil, fmt.Errorf("no report.account.report_trialbalance was found with criteria %v", criteria) + return nil, fmt.Errorf("report.account.report_trialbalance was not found with criteria %v", criteria) } // FindReportAccountReportTrialbalances finds report.account.report_trialbalance records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindReportAccountReportTrialbalanceId(criteria *Criteria, optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no report.account.report_trialbalance was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("report.account.report_trialbalance was not found with criteria %v and options %v", criteria, options) } diff --git a/report_all_channels_sales.go b/report_all_channels_sales.go index 8279a68c..236a1f80 100644 --- a/report_all_channels_sales.go +++ b/report_all_channels_sales.go @@ -93,7 +93,7 @@ func (c *Client) FindReportAllChannelsSales(criteria *Criteria) (*ReportAllChann if racss != nil && len(*racss) > 0 { return &((*racss)[0]), nil } - return nil, fmt.Errorf("no report.all.channels.sales was found with criteria %v", criteria) + return nil, fmt.Errorf("report.all.channels.sales was not found with criteria %v", criteria) } // FindReportAllChannelsSaless finds report.all.channels.sales records by querying it @@ -125,5 +125,5 @@ func (c *Client) FindReportAllChannelsSalesId(criteria *Criteria, options *Optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no report.all.channels.sales was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("report.all.channels.sales was not found with criteria %v and options %v", criteria, options) } diff --git a/report_base_report_irmodulereference.go b/report_base_report_irmodulereference.go index 3f794fd9..b5fb1467 100644 --- a/report_base_report_irmodulereference.go +++ b/report_base_report_irmodulereference.go @@ -78,7 +78,7 @@ func (c *Client) FindReportBaseReportIrmodulereference(criteria *Criteria) (*Rep if rbrs != nil && len(*rbrs) > 0 { return &((*rbrs)[0]), nil } - return nil, fmt.Errorf("no report.base.report_irmodulereference was found with criteria %v", criteria) + return nil, fmt.Errorf("report.base.report_irmodulereference was not found with criteria %v", criteria) } // FindReportBaseReportIrmodulereferences finds report.base.report_irmodulereference records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindReportBaseReportIrmodulereferenceId(criteria *Criteria, opt if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no report.base.report_irmodulereference was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("report.base.report_irmodulereference was not found with criteria %v and options %v", criteria, options) } diff --git a/report_hr_holidays_report_holidayssummary.go b/report_hr_holidays_report_holidayssummary.go index ed45feb7..c919eb45 100644 --- a/report_hr_holidays_report_holidayssummary.go +++ b/report_hr_holidays_report_holidayssummary.go @@ -78,7 +78,7 @@ func (c *Client) FindReportHrHolidaysReportHolidayssummary(criteria *Criteria) ( if rhrs != nil && len(*rhrs) > 0 { return &((*rhrs)[0]), nil } - return nil, fmt.Errorf("no report.hr_holidays.report_holidayssummary was found with criteria %v", criteria) + return nil, fmt.Errorf("report.hr_holidays.report_holidayssummary was not found with criteria %v", criteria) } // FindReportHrHolidaysReportHolidayssummarys finds report.hr_holidays.report_holidayssummary records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindReportHrHolidaysReportHolidayssummaryId(criteria *Criteria, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no report.hr_holidays.report_holidayssummary was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("report.hr_holidays.report_holidayssummary was not found with criteria %v and options %v", criteria, options) } diff --git a/report_paperformat.go b/report_paperformat.go index 45b60f1b..6eafa0e3 100644 --- a/report_paperformat.go +++ b/report_paperformat.go @@ -96,7 +96,7 @@ func (c *Client) FindReportPaperformat(criteria *Criteria) (*ReportPaperformat, if rps != nil && len(*rps) > 0 { return &((*rps)[0]), nil } - return nil, fmt.Errorf("no report.paperformat was found with criteria %v", criteria) + return nil, fmt.Errorf("report.paperformat was not found with criteria %v", criteria) } // FindReportPaperformats finds report.paperformat records by querying it @@ -128,5 +128,5 @@ func (c *Client) FindReportPaperformatId(criteria *Criteria, options *Options) ( if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no report.paperformat was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("report.paperformat was not found with criteria %v and options %v", criteria, options) } diff --git a/report_product_report_pricelist.go b/report_product_report_pricelist.go index 2e53cddf..9e95800c 100644 --- a/report_product_report_pricelist.go +++ b/report_product_report_pricelist.go @@ -78,7 +78,7 @@ func (c *Client) FindReportProductReportPricelist(criteria *Criteria) (*ReportPr if rprs != nil && len(*rprs) > 0 { return &((*rprs)[0]), nil } - return nil, fmt.Errorf("no report.product.report_pricelist was found with criteria %v", criteria) + return nil, fmt.Errorf("report.product.report_pricelist was not found with criteria %v", criteria) } // FindReportProductReportPricelists finds report.product.report_pricelist records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindReportProductReportPricelistId(criteria *Criteria, options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no report.product.report_pricelist was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("report.product.report_pricelist was not found with criteria %v and options %v", criteria, options) } diff --git a/report_project_task_user.go b/report_project_task_user.go index bbc742ee..4701804b 100644 --- a/report_project_task_user.go +++ b/report_project_task_user.go @@ -100,7 +100,7 @@ func (c *Client) FindReportProjectTaskUser(criteria *Criteria) (*ReportProjectTa if rptus != nil && len(*rptus) > 0 { return &((*rptus)[0]), nil } - return nil, fmt.Errorf("no report.project.task.user was found with criteria %v", criteria) + return nil, fmt.Errorf("report.project.task.user was not found with criteria %v", criteria) } // FindReportProjectTaskUsers finds report.project.task.user records by querying it @@ -132,5 +132,5 @@ func (c *Client) FindReportProjectTaskUserId(criteria *Criteria, options *Option if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no report.project.task.user was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("report.project.task.user was not found with criteria %v and options %v", criteria, options) } diff --git a/report_sale_report_saleproforma.go b/report_sale_report_saleproforma.go index 54870b29..8bef0616 100644 --- a/report_sale_report_saleproforma.go +++ b/report_sale_report_saleproforma.go @@ -78,7 +78,7 @@ func (c *Client) FindReportSaleReportSaleproforma(criteria *Criteria) (*ReportSa if rsrs != nil && len(*rsrs) > 0 { return &((*rsrs)[0]), nil } - return nil, fmt.Errorf("no report.sale.report_saleproforma was found with criteria %v", criteria) + return nil, fmt.Errorf("report.sale.report_saleproforma was not found with criteria %v", criteria) } // FindReportSaleReportSaleproformas finds report.sale.report_saleproforma records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindReportSaleReportSaleproformaId(criteria *Criteria, options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no report.sale.report_saleproforma was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("report.sale.report_saleproforma was not found with criteria %v and options %v", criteria, options) } diff --git a/report_stock_forecast.go b/report_stock_forecast.go index bf614377..138a525e 100644 --- a/report_stock_forecast.go +++ b/report_stock_forecast.go @@ -83,7 +83,7 @@ func (c *Client) FindReportStockForecast(criteria *Criteria) (*ReportStockForeca if rsfs != nil && len(*rsfs) > 0 { return &((*rsfs)[0]), nil } - return nil, fmt.Errorf("no report.stock.forecast was found with criteria %v", criteria) + return nil, fmt.Errorf("report.stock.forecast was not found with criteria %v", criteria) } // FindReportStockForecasts finds report.stock.forecast records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindReportStockForecastId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no report.stock.forecast was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("report.stock.forecast was not found with criteria %v and options %v", criteria, options) } diff --git a/res_bank.go b/res_bank.go index 14e3d49d..7f0cf3f4 100644 --- a/res_bank.go +++ b/res_bank.go @@ -93,7 +93,7 @@ func (c *Client) FindResBank(criteria *Criteria) (*ResBank, error) { if rbs != nil && len(*rbs) > 0 { return &((*rbs)[0]), nil } - return nil, fmt.Errorf("no res.bank was found with criteria %v", criteria) + return nil, fmt.Errorf("res.bank was not found with criteria %v", criteria) } // FindResBanks finds res.bank records by querying it @@ -125,5 +125,5 @@ func (c *Client) FindResBankId(criteria *Criteria, options *Options) (int64, err if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.bank was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.bank was not found with criteria %v and options %v", criteria, options) } diff --git a/res_company.go b/res_company.go index ed7a3670..f2277fae 100644 --- a/res_company.go +++ b/res_company.go @@ -160,7 +160,7 @@ func (c *Client) FindResCompany(criteria *Criteria) (*ResCompany, error) { if rcs != nil && len(*rcs) > 0 { return &((*rcs)[0]), nil } - return nil, fmt.Errorf("no res.company was found with criteria %v", criteria) + return nil, fmt.Errorf("res.company was not found with criteria %v", criteria) } // FindResCompanys finds res.company records by querying it @@ -192,5 +192,5 @@ func (c *Client) FindResCompanyId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.company was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.company was not found with criteria %v and options %v", criteria, options) } diff --git a/res_config.go b/res_config.go index 2121c4e4..f99e874e 100644 --- a/res_config.go +++ b/res_config.go @@ -82,7 +82,7 @@ func (c *Client) FindResConfig(criteria *Criteria) (*ResConfig, error) { if rcs != nil && len(*rcs) > 0 { return &((*rcs)[0]), nil } - return nil, fmt.Errorf("no res.config was found with criteria %v", criteria) + return nil, fmt.Errorf("res.config was not found with criteria %v", criteria) } // FindResConfigs finds res.config records by querying it @@ -114,5 +114,5 @@ func (c *Client) FindResConfigId(criteria *Criteria, options *Options) (int64, e if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.config was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.config was not found with criteria %v and options %v", criteria, options) } diff --git a/res_config_installer.go b/res_config_installer.go index 53466824..dd11a2f2 100644 --- a/res_config_installer.go +++ b/res_config_installer.go @@ -82,7 +82,7 @@ func (c *Client) FindResConfigInstaller(criteria *Criteria) (*ResConfigInstaller if rcis != nil && len(*rcis) > 0 { return &((*rcis)[0]), nil } - return nil, fmt.Errorf("no res.config.installer was found with criteria %v", criteria) + return nil, fmt.Errorf("res.config.installer was not found with criteria %v", criteria) } // FindResConfigInstallers finds res.config.installer records by querying it @@ -114,5 +114,5 @@ func (c *Client) FindResConfigInstallerId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.config.installer was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.config.installer was not found with criteria %v and options %v", criteria, options) } diff --git a/res_config_settings.go b/res_config_settings.go index fae6291b..52f84924 100644 --- a/res_config_settings.go +++ b/res_config_settings.go @@ -236,7 +236,7 @@ func (c *Client) FindResConfigSettings(criteria *Criteria) (*ResConfigSettings, if rcss != nil && len(*rcss) > 0 { return &((*rcss)[0]), nil } - return nil, fmt.Errorf("no res.config.settings was found with criteria %v", criteria) + return nil, fmt.Errorf("res.config.settings was not found with criteria %v", criteria) } // FindResConfigSettingss finds res.config.settings records by querying it @@ -268,5 +268,5 @@ func (c *Client) FindResConfigSettingsId(criteria *Criteria, options *Options) ( if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.config.settings was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.config.settings was not found with criteria %v and options %v", criteria, options) } diff --git a/res_country.go b/res_country.go index b6f856b3..3371671d 100644 --- a/res_country.go +++ b/res_country.go @@ -93,7 +93,7 @@ func (c *Client) FindResCountry(criteria *Criteria) (*ResCountry, error) { if rcs != nil && len(*rcs) > 0 { return &((*rcs)[0]), nil } - return nil, fmt.Errorf("no res.country was found with criteria %v", criteria) + return nil, fmt.Errorf("res.country was not found with criteria %v", criteria) } // FindResCountrys finds res.country records by querying it @@ -125,5 +125,5 @@ func (c *Client) FindResCountryId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.country was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.country was not found with criteria %v and options %v", criteria, options) } diff --git a/res_country_group.go b/res_country_group.go index 81e30dca..bf8b2e22 100644 --- a/res_country_group.go +++ b/res_country_group.go @@ -85,7 +85,7 @@ func (c *Client) FindResCountryGroup(criteria *Criteria) (*ResCountryGroup, erro if rcgs != nil && len(*rcgs) > 0 { return &((*rcgs)[0]), nil } - return nil, fmt.Errorf("no res.country.group was found with criteria %v", criteria) + return nil, fmt.Errorf("res.country.group was not found with criteria %v", criteria) } // FindResCountryGroups finds res.country.group records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindResCountryGroupId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.country.group was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.country.group was not found with criteria %v and options %v", criteria, options) } diff --git a/res_country_state.go b/res_country_state.go index 76e0d0a7..21a9ae73 100644 --- a/res_country_state.go +++ b/res_country_state.go @@ -85,7 +85,7 @@ func (c *Client) FindResCountryState(criteria *Criteria) (*ResCountryState, erro if rcss != nil && len(*rcss) > 0 { return &((*rcss)[0]), nil } - return nil, fmt.Errorf("no res.country.state was found with criteria %v", criteria) + return nil, fmt.Errorf("res.country.state was not found with criteria %v", criteria) } // FindResCountryStates finds res.country.state records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindResCountryStateId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.country.state was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.country.state was not found with criteria %v and options %v", criteria, options) } diff --git a/res_currency.go b/res_currency.go index a3e60c90..8cdf65e3 100644 --- a/res_currency.go +++ b/res_currency.go @@ -93,7 +93,7 @@ func (c *Client) FindResCurrency(criteria *Criteria) (*ResCurrency, error) { if rcs != nil && len(*rcs) > 0 { return &((*rcs)[0]), nil } - return nil, fmt.Errorf("no res.currency was found with criteria %v", criteria) + return nil, fmt.Errorf("res.currency was not found with criteria %v", criteria) } // FindResCurrencys finds res.currency records by querying it @@ -125,5 +125,5 @@ func (c *Client) FindResCurrencyId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.currency was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.currency was not found with criteria %v and options %v", criteria, options) } diff --git a/res_currency_rate.go b/res_currency_rate.go index eae09b91..09ddc877 100644 --- a/res_currency_rate.go +++ b/res_currency_rate.go @@ -86,7 +86,7 @@ func (c *Client) FindResCurrencyRate(criteria *Criteria) (*ResCurrencyRate, erro if rcrs != nil && len(*rcrs) > 0 { return &((*rcrs)[0]), nil } - return nil, fmt.Errorf("no res.currency.rate was found with criteria %v", criteria) + return nil, fmt.Errorf("res.currency.rate was not found with criteria %v", criteria) } // FindResCurrencyRates finds res.currency.rate records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindResCurrencyRateId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.currency.rate was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.currency.rate was not found with criteria %v and options %v", criteria, options) } diff --git a/res_groups.go b/res_groups.go index 873a39d3..898e2bec 100644 --- a/res_groups.go +++ b/res_groups.go @@ -96,7 +96,7 @@ func (c *Client) FindResGroups(criteria *Criteria) (*ResGroups, error) { if rgs != nil && len(*rgs) > 0 { return &((*rgs)[0]), nil } - return nil, fmt.Errorf("no res.groups was found with criteria %v", criteria) + return nil, fmt.Errorf("res.groups was not found with criteria %v", criteria) } // FindResGroupss finds res.groups records by querying it @@ -128,5 +128,5 @@ func (c *Client) FindResGroupsId(criteria *Criteria, options *Options) (int64, e if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.groups was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.groups was not found with criteria %v and options %v", criteria, options) } diff --git a/res_lang.go b/res_lang.go index 028e5f3e..351d87ac 100644 --- a/res_lang.go +++ b/res_lang.go @@ -93,7 +93,7 @@ func (c *Client) FindResLang(criteria *Criteria) (*ResLang, error) { if rls != nil && len(*rls) > 0 { return &((*rls)[0]), nil } - return nil, fmt.Errorf("no res.lang was found with criteria %v", criteria) + return nil, fmt.Errorf("res.lang was not found with criteria %v", criteria) } // FindResLangs finds res.lang records by querying it @@ -125,5 +125,5 @@ func (c *Client) FindResLangId(criteria *Criteria, options *Options) (int64, err if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.lang was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.lang was not found with criteria %v and options %v", criteria, options) } diff --git a/res_partner.go b/res_partner.go index aefe05d5..70f9402e 100644 --- a/res_partner.go +++ b/res_partner.go @@ -206,7 +206,7 @@ func (c *Client) FindResPartner(criteria *Criteria) (*ResPartner, error) { if rps != nil && len(*rps) > 0 { return &((*rps)[0]), nil } - return nil, fmt.Errorf("no res.partner was found with criteria %v", criteria) + return nil, fmt.Errorf("res.partner was not found with criteria %v", criteria) } // FindResPartners finds res.partner records by querying it @@ -238,5 +238,5 @@ func (c *Client) FindResPartnerId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.partner was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.partner was not found with criteria %v and options %v", criteria, options) } diff --git a/res_partner_bank.go b/res_partner_bank.go index 9c02a19e..abc7b3af 100644 --- a/res_partner_bank.go +++ b/res_partner_bank.go @@ -93,7 +93,7 @@ func (c *Client) FindResPartnerBank(criteria *Criteria) (*ResPartnerBank, error) if rpbs != nil && len(*rpbs) > 0 { return &((*rpbs)[0]), nil } - return nil, fmt.Errorf("no res.partner.bank was found with criteria %v", criteria) + return nil, fmt.Errorf("res.partner.bank was not found with criteria %v", criteria) } // FindResPartnerBanks finds res.partner.bank records by querying it @@ -125,5 +125,5 @@ func (c *Client) FindResPartnerBankId(criteria *Criteria, options *Options) (int if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.partner.bank was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.partner.bank was not found with criteria %v and options %v", criteria, options) } diff --git a/res_partner_category.go b/res_partner_category.go index 2a194f68..b1d20551 100644 --- a/res_partner_category.go +++ b/res_partner_category.go @@ -90,7 +90,7 @@ func (c *Client) FindResPartnerCategory(criteria *Criteria) (*ResPartnerCategory if rpcs != nil && len(*rpcs) > 0 { return &((*rpcs)[0]), nil } - return nil, fmt.Errorf("no res.partner.category was found with criteria %v", criteria) + return nil, fmt.Errorf("res.partner.category was not found with criteria %v", criteria) } // FindResPartnerCategorys finds res.partner.category records by querying it @@ -122,5 +122,5 @@ func (c *Client) FindResPartnerCategoryId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.partner.category was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.partner.category was not found with criteria %v and options %v", criteria, options) } diff --git a/res_partner_industry.go b/res_partner_industry.go index 038cb14a..38b5ac98 100644 --- a/res_partner_industry.go +++ b/res_partner_industry.go @@ -85,7 +85,7 @@ func (c *Client) FindResPartnerIndustry(criteria *Criteria) (*ResPartnerIndustry if rpis != nil && len(*rpis) > 0 { return &((*rpis)[0]), nil } - return nil, fmt.Errorf("no res.partner.industry was found with criteria %v", criteria) + return nil, fmt.Errorf("res.partner.industry was not found with criteria %v", criteria) } // FindResPartnerIndustrys finds res.partner.industry records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindResPartnerIndustryId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.partner.industry was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.partner.industry was not found with criteria %v and options %v", criteria, options) } diff --git a/res_partner_title.go b/res_partner_title.go index 5a03e851..67e959b3 100644 --- a/res_partner_title.go +++ b/res_partner_title.go @@ -84,7 +84,7 @@ func (c *Client) FindResPartnerTitle(criteria *Criteria) (*ResPartnerTitle, erro if rpts != nil && len(*rpts) > 0 { return &((*rpts)[0]), nil } - return nil, fmt.Errorf("no res.partner.title was found with criteria %v", criteria) + return nil, fmt.Errorf("res.partner.title was not found with criteria %v", criteria) } // FindResPartnerTitles finds res.partner.title records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindResPartnerTitleId(criteria *Criteria, options *Options) (in if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.partner.title was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.partner.title was not found with criteria %v and options %v", criteria, options) } diff --git a/res_request_link.go b/res_request_link.go index 9db11bef..62918947 100644 --- a/res_request_link.go +++ b/res_request_link.go @@ -85,7 +85,7 @@ func (c *Client) FindResRequestLink(criteria *Criteria) (*ResRequestLink, error) if rrls != nil && len(*rrls) > 0 { return &((*rrls)[0]), nil } - return nil, fmt.Errorf("no res.request.link was found with criteria %v", criteria) + return nil, fmt.Errorf("res.request.link was not found with criteria %v", criteria) } // FindResRequestLinks finds res.request.link records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindResRequestLinkId(criteria *Criteria, options *Options) (int if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.request.link was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.request.link was not found with criteria %v and options %v", criteria, options) } diff --git a/res_users.go b/res_users.go index 8c6bd1e9..716443e8 100644 --- a/res_users.go +++ b/res_users.go @@ -232,7 +232,7 @@ func (c *Client) FindResUsers(criteria *Criteria) (*ResUsers, error) { if rus != nil && len(*rus) > 0 { return &((*rus)[0]), nil } - return nil, fmt.Errorf("no res.users was found with criteria %v", criteria) + return nil, fmt.Errorf("res.users was not found with criteria %v", criteria) } // FindResUserss finds res.users records by querying it @@ -264,5 +264,5 @@ func (c *Client) FindResUsersId(criteria *Criteria, options *Options) (int64, er if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.users was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.users was not found with criteria %v and options %v", criteria, options) } diff --git a/res_users_log.go b/res_users_log.go index caf90c32..a0e93685 100644 --- a/res_users_log.go +++ b/res_users_log.go @@ -82,7 +82,7 @@ func (c *Client) FindResUsersLog(criteria *Criteria) (*ResUsersLog, error) { if ruls != nil && len(*ruls) > 0 { return &((*ruls)[0]), nil } - return nil, fmt.Errorf("no res.users.log was found with criteria %v", criteria) + return nil, fmt.Errorf("res.users.log was not found with criteria %v", criteria) } // FindResUsersLogs finds res.users.log records by querying it @@ -114,5 +114,5 @@ func (c *Client) FindResUsersLogId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no res.users.log was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("res.users.log was not found with criteria %v and options %v", criteria, options) } diff --git a/resource_calendar.go b/resource_calendar.go index c8299525..9fe2f992 100644 --- a/resource_calendar.go +++ b/resource_calendar.go @@ -87,7 +87,7 @@ func (c *Client) FindResourceCalendar(criteria *Criteria) (*ResourceCalendar, er if rcs != nil && len(*rcs) > 0 { return &((*rcs)[0]), nil } - return nil, fmt.Errorf("no resource.calendar was found with criteria %v", criteria) + return nil, fmt.Errorf("resource.calendar was not found with criteria %v", criteria) } // FindResourceCalendars finds resource.calendar records by querying it @@ -119,5 +119,5 @@ func (c *Client) FindResourceCalendarId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no resource.calendar was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("resource.calendar was not found with criteria %v and options %v", criteria, options) } diff --git a/resource_calendar_attendance.go b/resource_calendar_attendance.go index 9979bd74..58176d5e 100644 --- a/resource_calendar_attendance.go +++ b/resource_calendar_attendance.go @@ -89,7 +89,7 @@ func (c *Client) FindResourceCalendarAttendance(criteria *Criteria) (*ResourceCa if rcas != nil && len(*rcas) > 0 { return &((*rcas)[0]), nil } - return nil, fmt.Errorf("no resource.calendar.attendance was found with criteria %v", criteria) + return nil, fmt.Errorf("resource.calendar.attendance was not found with criteria %v", criteria) } // FindResourceCalendarAttendances finds resource.calendar.attendance records by querying it @@ -121,5 +121,5 @@ func (c *Client) FindResourceCalendarAttendanceId(criteria *Criteria, options *O if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no resource.calendar.attendance was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("resource.calendar.attendance was not found with criteria %v and options %v", criteria, options) } diff --git a/resource_calendar_leaves.go b/resource_calendar_leaves.go index 047f1eb5..76293043 100644 --- a/resource_calendar_leaves.go +++ b/resource_calendar_leaves.go @@ -90,7 +90,7 @@ func (c *Client) FindResourceCalendarLeaves(criteria *Criteria) (*ResourceCalend if rcls != nil && len(*rcls) > 0 { return &((*rcls)[0]), nil } - return nil, fmt.Errorf("no resource.calendar.leaves was found with criteria %v", criteria) + return nil, fmt.Errorf("resource.calendar.leaves was not found with criteria %v", criteria) } // FindResourceCalendarLeavess finds resource.calendar.leaves records by querying it @@ -122,5 +122,5 @@ func (c *Client) FindResourceCalendarLeavesId(criteria *Criteria, options *Optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no resource.calendar.leaves was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("resource.calendar.leaves was not found with criteria %v and options %v", criteria, options) } diff --git a/resource_mixin.go b/resource_mixin.go index 238a24af..b0e8a8ee 100644 --- a/resource_mixin.go +++ b/resource_mixin.go @@ -81,7 +81,7 @@ func (c *Client) FindResourceMixin(criteria *Criteria) (*ResourceMixin, error) { if rms != nil && len(*rms) > 0 { return &((*rms)[0]), nil } - return nil, fmt.Errorf("no resource.mixin was found with criteria %v", criteria) + return nil, fmt.Errorf("resource.mixin was not found with criteria %v", criteria) } // FindResourceMixins finds resource.mixin records by querying it @@ -113,5 +113,5 @@ func (c *Client) FindResourceMixinId(criteria *Criteria, options *Options) (int6 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no resource.mixin was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("resource.mixin was not found with criteria %v and options %v", criteria, options) } diff --git a/resource_resource.go b/resource_resource.go index b2cd4fbb..70aac8d7 100644 --- a/resource_resource.go +++ b/resource_resource.go @@ -89,7 +89,7 @@ func (c *Client) FindResourceResource(criteria *Criteria) (*ResourceResource, er if rrs != nil && len(*rrs) > 0 { return &((*rrs)[0]), nil } - return nil, fmt.Errorf("no resource.resource was found with criteria %v", criteria) + return nil, fmt.Errorf("resource.resource was not found with criteria %v", criteria) } // FindResourceResources finds resource.resource records by querying it @@ -121,5 +121,5 @@ func (c *Client) FindResourceResourceId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no resource.resource was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("resource.resource was not found with criteria %v and options %v", criteria, options) } diff --git a/resource_test.go b/resource_test.go index 07bee2c3..84a293bb 100644 --- a/resource_test.go +++ b/resource_test.go @@ -86,7 +86,7 @@ func (c *Client) FindResourceTest(criteria *Criteria) (*ResourceTest, error) { if rts != nil && len(*rts) > 0 { return &((*rts)[0]), nil } - return nil, fmt.Errorf("no resource.test was found with criteria %v", criteria) + return nil, fmt.Errorf("resource.test was not found with criteria %v", criteria) } // FindResourceTests finds resource.test records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindResourceTestId(criteria *Criteria, options *Options) (int64 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no resource.test was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("resource.test was not found with criteria %v and options %v", criteria, options) } diff --git a/sale_advance_payment_inv.go b/sale_advance_payment_inv.go index 768e2edc..4ff4c17b 100644 --- a/sale_advance_payment_inv.go +++ b/sale_advance_payment_inv.go @@ -88,7 +88,7 @@ func (c *Client) FindSaleAdvancePaymentInv(criteria *Criteria) (*SaleAdvancePaym if sapis != nil && len(*sapis) > 0 { return &((*sapis)[0]), nil } - return nil, fmt.Errorf("no sale.advance.payment.inv was found with criteria %v", criteria) + return nil, fmt.Errorf("sale.advance.payment.inv was not found with criteria %v", criteria) } // FindSaleAdvancePaymentInvs finds sale.advance.payment.inv records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindSaleAdvancePaymentInvId(criteria *Criteria, options *Option if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no sale.advance.payment.inv was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("sale.advance.payment.inv was not found with criteria %v and options %v", criteria, options) } diff --git a/sale_layout_category.go b/sale_layout_category.go index 12270f4f..82f0a415 100644 --- a/sale_layout_category.go +++ b/sale_layout_category.go @@ -86,7 +86,7 @@ func (c *Client) FindSaleLayoutCategory(criteria *Criteria) (*SaleLayoutCategory if sls != nil && len(*sls) > 0 { return &((*sls)[0]), nil } - return nil, fmt.Errorf("no sale.layout_category was found with criteria %v", criteria) + return nil, fmt.Errorf("sale.layout_category was not found with criteria %v", criteria) } // FindSaleLayoutCategorys finds sale.layout_category records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindSaleLayoutCategoryId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no sale.layout_category was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("sale.layout_category was not found with criteria %v and options %v", criteria, options) } diff --git a/sale_order.go b/sale_order.go index 4609fd51..73d06271 100644 --- a/sale_order.go +++ b/sale_order.go @@ -150,7 +150,7 @@ func (c *Client) FindSaleOrder(criteria *Criteria) (*SaleOrder, error) { if sos != nil && len(*sos) > 0 { return &((*sos)[0]), nil } - return nil, fmt.Errorf("no sale.order was found with criteria %v", criteria) + return nil, fmt.Errorf("sale.order was not found with criteria %v", criteria) } // FindSaleOrders finds sale.order records by querying it @@ -182,5 +182,5 @@ func (c *Client) FindSaleOrderId(criteria *Criteria, options *Options) (int64, e if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no sale.order was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("sale.order was not found with criteria %v and options %v", criteria, options) } diff --git a/sale_order_line.go b/sale_order_line.go index 5b6d8413..1b0ff914 100644 --- a/sale_order_line.go +++ b/sale_order_line.go @@ -124,7 +124,7 @@ func (c *Client) FindSaleOrderLine(criteria *Criteria) (*SaleOrderLine, error) { if sols != nil && len(*sols) > 0 { return &((*sols)[0]), nil } - return nil, fmt.Errorf("no sale.order.line was found with criteria %v", criteria) + return nil, fmt.Errorf("sale.order.line was not found with criteria %v", criteria) } // FindSaleOrderLines finds sale.order.line records by querying it @@ -156,5 +156,5 @@ func (c *Client) FindSaleOrderLineId(criteria *Criteria, options *Options) (int6 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no sale.order.line was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("sale.order.line was not found with criteria %v and options %v", criteria, options) } diff --git a/sale_report.go b/sale_report.go index 403aa9a4..933191d3 100644 --- a/sale_report.go +++ b/sale_report.go @@ -106,7 +106,7 @@ func (c *Client) FindSaleReport(criteria *Criteria) (*SaleReport, error) { if srs != nil && len(*srs) > 0 { return &((*srs)[0]), nil } - return nil, fmt.Errorf("no sale.report was found with criteria %v", criteria) + return nil, fmt.Errorf("sale.report was not found with criteria %v", criteria) } // FindSaleReports finds sale.report records by querying it @@ -138,5 +138,5 @@ func (c *Client) FindSaleReportId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no sale.report was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("sale.report was not found with criteria %v and options %v", criteria, options) } diff --git a/sms_api.go b/sms_api.go index a2dc1718..58be2a42 100644 --- a/sms_api.go +++ b/sms_api.go @@ -78,7 +78,7 @@ func (c *Client) FindSmsApi(criteria *Criteria) (*SmsApi, error) { if sas != nil && len(*sas) > 0 { return &((*sas)[0]), nil } - return nil, fmt.Errorf("no sms.api was found with criteria %v", criteria) + return nil, fmt.Errorf("sms.api was not found with criteria %v", criteria) } // FindSmsApis finds sms.api records by querying it @@ -110,5 +110,5 @@ func (c *Client) FindSmsApiId(criteria *Criteria, options *Options) (int64, erro if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no sms.api was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("sms.api was not found with criteria %v and options %v", criteria, options) } diff --git a/sms_send_sms.go b/sms_send_sms.go index 95dd7af2..60a8acc7 100644 --- a/sms_send_sms.go +++ b/sms_send_sms.go @@ -84,7 +84,7 @@ func (c *Client) FindSmsSendSms(criteria *Criteria) (*SmsSendSms, error) { if sss != nil && len(*sss) > 0 { return &((*sss)[0]), nil } - return nil, fmt.Errorf("no sms.send_sms was found with criteria %v", criteria) + return nil, fmt.Errorf("sms.send_sms was not found with criteria %v", criteria) } // FindSmsSendSmss finds sms.send_sms records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindSmsSendSmsId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no sms.send_sms was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("sms.send_sms was not found with criteria %v and options %v", criteria, options) } diff --git a/sparse_fields_test.go b/sparse_fields_test.go index 70df9c18..28e7cbb8 100644 --- a/sparse_fields_test.go +++ b/sparse_fields_test.go @@ -89,7 +89,7 @@ func (c *Client) FindSparseFieldsTest(criteria *Criteria) (*SparseFieldsTest, er if sts != nil && len(*sts) > 0 { return &((*sts)[0]), nil } - return nil, fmt.Errorf("no sparse_fields.test was found with criteria %v", criteria) + return nil, fmt.Errorf("sparse_fields.test was not found with criteria %v", criteria) } // FindSparseFieldsTests finds sparse_fields.test records by querying it @@ -121,5 +121,5 @@ func (c *Client) FindSparseFieldsTestId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no sparse_fields.test was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("sparse_fields.test was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_backorder_confirmation.go b/stock_backorder_confirmation.go index a130f779..b5c18a97 100644 --- a/stock_backorder_confirmation.go +++ b/stock_backorder_confirmation.go @@ -83,7 +83,7 @@ func (c *Client) FindStockBackorderConfirmation(criteria *Criteria) (*StockBacko if sbcs != nil && len(*sbcs) > 0 { return &((*sbcs)[0]), nil } - return nil, fmt.Errorf("no stock.backorder.confirmation was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.backorder.confirmation was not found with criteria %v", criteria) } // FindStockBackorderConfirmations finds stock.backorder.confirmation records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindStockBackorderConfirmationId(criteria *Criteria, options *O if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.backorder.confirmation was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.backorder.confirmation was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_change_product_qty.go b/stock_change_product_qty.go index d393deba..7e514ac7 100644 --- a/stock_change_product_qty.go +++ b/stock_change_product_qty.go @@ -88,7 +88,7 @@ func (c *Client) FindStockChangeProductQty(criteria *Criteria) (*StockChangeProd if scpqs != nil && len(*scpqs) > 0 { return &((*scpqs)[0]), nil } - return nil, fmt.Errorf("no stock.change.product.qty was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.change.product.qty was not found with criteria %v", criteria) } // FindStockChangeProductQtys finds stock.change.product.qty records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindStockChangeProductQtyId(criteria *Criteria, options *Option if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.change.product.qty was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.change.product.qty was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_change_standard_price.go b/stock_change_standard_price.go index 377c168c..9324e501 100644 --- a/stock_change_standard_price.go +++ b/stock_change_standard_price.go @@ -85,7 +85,7 @@ func (c *Client) FindStockChangeStandardPrice(criteria *Criteria) (*StockChangeS if scsps != nil && len(*scsps) > 0 { return &((*scsps)[0]), nil } - return nil, fmt.Errorf("no stock.change.standard.price was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.change.standard.price was not found with criteria %v", criteria) } // FindStockChangeStandardPrices finds stock.change.standard.price records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindStockChangeStandardPriceId(criteria *Criteria, options *Opt if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.change.standard.price was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.change.standard.price was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_fixed_putaway_strat.go b/stock_fixed_putaway_strat.go index 3a56121b..c180eab0 100644 --- a/stock_fixed_putaway_strat.go +++ b/stock_fixed_putaway_strat.go @@ -86,7 +86,7 @@ func (c *Client) FindStockFixedPutawayStrat(criteria *Criteria) (*StockFixedPuta if sfpss != nil && len(*sfpss) > 0 { return &((*sfpss)[0]), nil } - return nil, fmt.Errorf("no stock.fixed.putaway.strat was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.fixed.putaway.strat was not found with criteria %v", criteria) } // FindStockFixedPutawayStrats finds stock.fixed.putaway.strat records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindStockFixedPutawayStratId(criteria *Criteria, options *Optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.fixed.putaway.strat was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.fixed.putaway.strat was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_immediate_transfer.go b/stock_immediate_transfer.go index 75afb525..ef4a47a9 100644 --- a/stock_immediate_transfer.go +++ b/stock_immediate_transfer.go @@ -83,7 +83,7 @@ func (c *Client) FindStockImmediateTransfer(criteria *Criteria) (*StockImmediate if sits != nil && len(*sits) > 0 { return &((*sits)[0]), nil } - return nil, fmt.Errorf("no stock.immediate.transfer was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.immediate.transfer was not found with criteria %v", criteria) } // FindStockImmediateTransfers finds stock.immediate.transfer records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindStockImmediateTransferId(criteria *Criteria, options *Optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.immediate.transfer was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.immediate.transfer was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_incoterms.go b/stock_incoterms.go index b3794b42..b4826de3 100644 --- a/stock_incoterms.go +++ b/stock_incoterms.go @@ -85,7 +85,7 @@ func (c *Client) FindStockIncoterms(criteria *Criteria) (*StockIncoterms, error) if sis != nil && len(*sis) > 0 { return &((*sis)[0]), nil } - return nil, fmt.Errorf("no stock.incoterms was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.incoterms was not found with criteria %v", criteria) } // FindStockIncotermss finds stock.incoterms records by querying it @@ -117,5 +117,5 @@ func (c *Client) FindStockIncotermsId(criteria *Criteria, options *Options) (int if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.incoterms was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.incoterms was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_inventory.go b/stock_inventory.go index 3186608a..55330f5f 100644 --- a/stock_inventory.go +++ b/stock_inventory.go @@ -98,7 +98,7 @@ func (c *Client) FindStockInventory(criteria *Criteria) (*StockInventory, error) if sis != nil && len(*sis) > 0 { return &((*sis)[0]), nil } - return nil, fmt.Errorf("no stock.inventory was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.inventory was not found with criteria %v", criteria) } // FindStockInventorys finds stock.inventory records by querying it @@ -130,5 +130,5 @@ func (c *Client) FindStockInventoryId(criteria *Criteria, options *Options) (int if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.inventory was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.inventory was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_inventory_line.go b/stock_inventory_line.go index e13f3001..188e96cd 100644 --- a/stock_inventory_line.go +++ b/stock_inventory_line.go @@ -98,7 +98,7 @@ func (c *Client) FindStockInventoryLine(criteria *Criteria) (*StockInventoryLine if sils != nil && len(*sils) > 0 { return &((*sils)[0]), nil } - return nil, fmt.Errorf("no stock.inventory.line was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.inventory.line was not found with criteria %v", criteria) } // FindStockInventoryLines finds stock.inventory.line records by querying it @@ -130,5 +130,5 @@ func (c *Client) FindStockInventoryLineId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.inventory.line was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.inventory.line was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_location.go b/stock_location.go index d5e405f5..a0a01c90 100644 --- a/stock_location.go +++ b/stock_location.go @@ -104,7 +104,7 @@ func (c *Client) FindStockLocation(criteria *Criteria) (*StockLocation, error) { if sls != nil && len(*sls) > 0 { return &((*sls)[0]), nil } - return nil, fmt.Errorf("no stock.location was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.location was not found with criteria %v", criteria) } // FindStockLocations finds stock.location records by querying it @@ -136,5 +136,5 @@ func (c *Client) FindStockLocationId(criteria *Criteria, options *Options) (int6 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.location was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.location was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_location_path.go b/stock_location_path.go index 11f85bd2..34eb81f4 100644 --- a/stock_location_path.go +++ b/stock_location_path.go @@ -95,7 +95,7 @@ func (c *Client) FindStockLocationPath(criteria *Criteria) (*StockLocationPath, if slps != nil && len(*slps) > 0 { return &((*slps)[0]), nil } - return nil, fmt.Errorf("no stock.location.path was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.location.path was not found with criteria %v", criteria) } // FindStockLocationPaths finds stock.location.path records by querying it @@ -127,5 +127,5 @@ func (c *Client) FindStockLocationPathId(criteria *Criteria, options *Options) ( if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.location.path was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.location.path was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_location_route.go b/stock_location_route.go index f5accd32..9decf196 100644 --- a/stock_location_route.go +++ b/stock_location_route.go @@ -97,7 +97,7 @@ func (c *Client) FindStockLocationRoute(criteria *Criteria) (*StockLocationRoute if slrs != nil && len(*slrs) > 0 { return &((*slrs)[0]), nil } - return nil, fmt.Errorf("no stock.location.route was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.location.route was not found with criteria %v", criteria) } // FindStockLocationRoutes finds stock.location.route records by querying it @@ -129,5 +129,5 @@ func (c *Client) FindStockLocationRouteId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.location.route was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.location.route was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_move.go b/stock_move.go index 5d5f0b80..6df6c79a 100644 --- a/stock_move.go +++ b/stock_move.go @@ -147,7 +147,7 @@ func (c *Client) FindStockMove(criteria *Criteria) (*StockMove, error) { if sms != nil && len(*sms) > 0 { return &((*sms)[0]), nil } - return nil, fmt.Errorf("no stock.move was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.move was not found with criteria %v", criteria) } // FindStockMoves finds stock.move records by querying it @@ -179,5 +179,5 @@ func (c *Client) FindStockMoveId(criteria *Criteria, options *Options) (int64, e if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.move was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.move was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_move_line.go b/stock_move_line.go index 856a465d..d6e8c382 100644 --- a/stock_move_line.go +++ b/stock_move_line.go @@ -108,7 +108,7 @@ func (c *Client) FindStockMoveLine(criteria *Criteria) (*StockMoveLine, error) { if smls != nil && len(*smls) > 0 { return &((*smls)[0]), nil } - return nil, fmt.Errorf("no stock.move.line was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.move.line was not found with criteria %v", criteria) } // FindStockMoveLines finds stock.move.line records by querying it @@ -140,5 +140,5 @@ func (c *Client) FindStockMoveLineId(criteria *Criteria, options *Options) (int6 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.move.line was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.move.line was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_overprocessed_transfer.go b/stock_overprocessed_transfer.go index 91958a99..a81dda42 100644 --- a/stock_overprocessed_transfer.go +++ b/stock_overprocessed_transfer.go @@ -84,7 +84,7 @@ func (c *Client) FindStockOverprocessedTransfer(criteria *Criteria) (*StockOverp if sots != nil && len(*sots) > 0 { return &((*sots)[0]), nil } - return nil, fmt.Errorf("no stock.overprocessed.transfer was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.overprocessed.transfer was not found with criteria %v", criteria) } // FindStockOverprocessedTransfers finds stock.overprocessed.transfer records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindStockOverprocessedTransferId(criteria *Criteria, options *O if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.overprocessed.transfer was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.overprocessed.transfer was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_picking.go b/stock_picking.go index 3b4ce4f7..91a9ce3a 100644 --- a/stock_picking.go +++ b/stock_picking.go @@ -136,7 +136,7 @@ func (c *Client) FindStockPicking(criteria *Criteria) (*StockPicking, error) { if sps != nil && len(*sps) > 0 { return &((*sps)[0]), nil } - return nil, fmt.Errorf("no stock.picking was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.picking was not found with criteria %v", criteria) } // FindStockPickings finds stock.picking records by querying it @@ -168,5 +168,5 @@ func (c *Client) FindStockPickingId(criteria *Criteria, options *Options) (int64 if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.picking was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.picking was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_picking_type.go b/stock_picking_type.go index 592e3914..6497a368 100644 --- a/stock_picking_type.go +++ b/stock_picking_type.go @@ -107,7 +107,7 @@ func (c *Client) FindStockPickingType(criteria *Criteria) (*StockPickingType, er if spts != nil && len(*spts) > 0 { return &((*spts)[0]), nil } - return nil, fmt.Errorf("no stock.picking.type was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.picking.type was not found with criteria %v", criteria) } // FindStockPickingTypes finds stock.picking.type records by querying it @@ -139,5 +139,5 @@ func (c *Client) FindStockPickingTypeId(criteria *Criteria, options *Options) (i if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.picking.type was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.picking.type was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_production_lot.go b/stock_production_lot.go index c0d3dbcc..0ac01b95 100644 --- a/stock_production_lot.go +++ b/stock_production_lot.go @@ -99,7 +99,7 @@ func (c *Client) FindStockProductionLot(criteria *Criteria) (*StockProductionLot if spls != nil && len(*spls) > 0 { return &((*spls)[0]), nil } - return nil, fmt.Errorf("no stock.production.lot was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.production.lot was not found with criteria %v", criteria) } // FindStockProductionLots finds stock.production.lot records by querying it @@ -131,5 +131,5 @@ func (c *Client) FindStockProductionLotId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.production.lot was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.production.lot was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_quant.go b/stock_quant.go index 4d49b1bc..b841c391 100644 --- a/stock_quant.go +++ b/stock_quant.go @@ -93,7 +93,7 @@ func (c *Client) FindStockQuant(criteria *Criteria) (*StockQuant, error) { if sqs != nil && len(*sqs) > 0 { return &((*sqs)[0]), nil } - return nil, fmt.Errorf("no stock.quant was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.quant was not found with criteria %v", criteria) } // FindStockQuants finds stock.quant records by querying it @@ -125,5 +125,5 @@ func (c *Client) FindStockQuantId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.quant was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.quant was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_quant_package.go b/stock_quant_package.go index a00559ee..f310fe34 100644 --- a/stock_quant_package.go +++ b/stock_quant_package.go @@ -94,7 +94,7 @@ func (c *Client) FindStockQuantPackage(criteria *Criteria) (*StockQuantPackage, if sqps != nil && len(*sqps) > 0 { return &((*sqps)[0]), nil } - return nil, fmt.Errorf("no stock.quant.package was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.quant.package was not found with criteria %v", criteria) } // FindStockQuantPackages finds stock.quant.package records by querying it @@ -126,5 +126,5 @@ func (c *Client) FindStockQuantPackageId(criteria *Criteria, options *Options) ( if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.quant.package was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.quant.package was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_quantity_history.go b/stock_quantity_history.go index c930827d..b7d75d12 100644 --- a/stock_quantity_history.go +++ b/stock_quantity_history.go @@ -84,7 +84,7 @@ func (c *Client) FindStockQuantityHistory(criteria *Criteria) (*StockQuantityHis if sqhs != nil && len(*sqhs) > 0 { return &((*sqhs)[0]), nil } - return nil, fmt.Errorf("no stock.quantity.history was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.quantity.history was not found with criteria %v", criteria) } // FindStockQuantityHistorys finds stock.quantity.history records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindStockQuantityHistoryId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.quantity.history was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.quantity.history was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_return_picking.go b/stock_return_picking.go index 70ab3bc8..2dabc39b 100644 --- a/stock_return_picking.go +++ b/stock_return_picking.go @@ -88,7 +88,7 @@ func (c *Client) FindStockReturnPicking(criteria *Criteria) (*StockReturnPicking if srps != nil && len(*srps) > 0 { return &((*srps)[0]), nil } - return nil, fmt.Errorf("no stock.return.picking was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.return.picking was not found with criteria %v", criteria) } // FindStockReturnPickings finds stock.return.picking records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindStockReturnPickingId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.return.picking was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.return.picking was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_return_picking_line.go b/stock_return_picking_line.go index 2073ae35..deb81b2a 100644 --- a/stock_return_picking_line.go +++ b/stock_return_picking_line.go @@ -88,7 +88,7 @@ func (c *Client) FindStockReturnPickingLine(criteria *Criteria) (*StockReturnPic if srpls != nil && len(*srpls) > 0 { return &((*srpls)[0]), nil } - return nil, fmt.Errorf("no stock.return.picking.line was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.return.picking.line was not found with criteria %v", criteria) } // FindStockReturnPickingLines finds stock.return.picking.line records by querying it @@ -120,5 +120,5 @@ func (c *Client) FindStockReturnPickingLineId(criteria *Criteria, options *Optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.return.picking.line was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.return.picking.line was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_scheduler_compute.go b/stock_scheduler_compute.go index 965be3ff..ae1f1414 100644 --- a/stock_scheduler_compute.go +++ b/stock_scheduler_compute.go @@ -82,7 +82,7 @@ func (c *Client) FindStockSchedulerCompute(criteria *Criteria) (*StockSchedulerC if sscs != nil && len(*sscs) > 0 { return &((*sscs)[0]), nil } - return nil, fmt.Errorf("no stock.scheduler.compute was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.scheduler.compute was not found with criteria %v", criteria) } // FindStockSchedulerComputes finds stock.scheduler.compute records by querying it @@ -114,5 +114,5 @@ func (c *Client) FindStockSchedulerComputeId(criteria *Criteria, options *Option if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.scheduler.compute was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.scheduler.compute was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_scrap.go b/stock_scrap.go index f62d70f9..5586d961 100644 --- a/stock_scrap.go +++ b/stock_scrap.go @@ -97,7 +97,7 @@ func (c *Client) FindStockScrap(criteria *Criteria) (*StockScrap, error) { if sss != nil && len(*sss) > 0 { return &((*sss)[0]), nil } - return nil, fmt.Errorf("no stock.scrap was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.scrap was not found with criteria %v", criteria) } // FindStockScraps finds stock.scrap records by querying it @@ -129,5 +129,5 @@ func (c *Client) FindStockScrapId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.scrap was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.scrap was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_traceability_report.go b/stock_traceability_report.go index 16e1293e..4a4cb0c5 100644 --- a/stock_traceability_report.go +++ b/stock_traceability_report.go @@ -82,7 +82,7 @@ func (c *Client) FindStockTraceabilityReport(criteria *Criteria) (*StockTraceabi if strs != nil && len(*strs) > 0 { return &((*strs)[0]), nil } - return nil, fmt.Errorf("no stock.traceability.report was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.traceability.report was not found with criteria %v", criteria) } // FindStockTraceabilityReports finds stock.traceability.report records by querying it @@ -114,5 +114,5 @@ func (c *Client) FindStockTraceabilityReportId(criteria *Criteria, options *Opti if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.traceability.report was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.traceability.report was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_warehouse.go b/stock_warehouse.go index 3d37a739..55f26416 100644 --- a/stock_warehouse.go +++ b/stock_warehouse.go @@ -110,7 +110,7 @@ func (c *Client) FindStockWarehouse(criteria *Criteria) (*StockWarehouse, error) if sws != nil && len(*sws) > 0 { return &((*sws)[0]), nil } - return nil, fmt.Errorf("no stock.warehouse was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.warehouse was not found with criteria %v", criteria) } // FindStockWarehouses finds stock.warehouse records by querying it @@ -142,5 +142,5 @@ func (c *Client) FindStockWarehouseId(criteria *Criteria, options *Options) (int if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.warehouse was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.warehouse was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_warehouse_orderpoint.go b/stock_warehouse_orderpoint.go index 7c1c2aa1..bf807ec5 100644 --- a/stock_warehouse_orderpoint.go +++ b/stock_warehouse_orderpoint.go @@ -95,7 +95,7 @@ func (c *Client) FindStockWarehouseOrderpoint(criteria *Criteria) (*StockWarehou if swos != nil && len(*swos) > 0 { return &((*swos)[0]), nil } - return nil, fmt.Errorf("no stock.warehouse.orderpoint was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.warehouse.orderpoint was not found with criteria %v", criteria) } // FindStockWarehouseOrderpoints finds stock.warehouse.orderpoint records by querying it @@ -127,5 +127,5 @@ func (c *Client) FindStockWarehouseOrderpointId(criteria *Criteria, options *Opt if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.warehouse.orderpoint was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.warehouse.orderpoint was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_warn_insufficient_qty.go b/stock_warn_insufficient_qty.go index 119cabd4..0f0db55c 100644 --- a/stock_warn_insufficient_qty.go +++ b/stock_warn_insufficient_qty.go @@ -81,7 +81,7 @@ func (c *Client) FindStockWarnInsufficientQty(criteria *Criteria) (*StockWarnIns if swiqs != nil && len(*swiqs) > 0 { return &((*swiqs)[0]), nil } - return nil, fmt.Errorf("no stock.warn.insufficient.qty was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.warn.insufficient.qty was not found with criteria %v", criteria) } // FindStockWarnInsufficientQtys finds stock.warn.insufficient.qty records by querying it @@ -113,5 +113,5 @@ func (c *Client) FindStockWarnInsufficientQtyId(criteria *Criteria, options *Opt if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.warn.insufficient.qty was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.warn.insufficient.qty was not found with criteria %v and options %v", criteria, options) } diff --git a/stock_warn_insufficient_qty_scrap.go b/stock_warn_insufficient_qty_scrap.go index ccdd00fa..5d8e136e 100644 --- a/stock_warn_insufficient_qty_scrap.go +++ b/stock_warn_insufficient_qty_scrap.go @@ -86,7 +86,7 @@ func (c *Client) FindStockWarnInsufficientQtyScrap(criteria *Criteria) (*StockWa if swiqss != nil && len(*swiqss) > 0 { return &((*swiqss)[0]), nil } - return nil, fmt.Errorf("no stock.warn.insufficient.qty.scrap was found with criteria %v", criteria) + return nil, fmt.Errorf("stock.warn.insufficient.qty.scrap was not found with criteria %v", criteria) } // FindStockWarnInsufficientQtyScraps finds stock.warn.insufficient.qty.scrap records by querying it @@ -118,5 +118,5 @@ func (c *Client) FindStockWarnInsufficientQtyScrapId(criteria *Criteria, options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no stock.warn.insufficient.qty.scrap was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("stock.warn.insufficient.qty.scrap was not found with criteria %v and options %v", criteria, options) } diff --git a/tax_adjustments_wizard.go b/tax_adjustments_wizard.go index 31b8180c..69646c2a 100644 --- a/tax_adjustments_wizard.go +++ b/tax_adjustments_wizard.go @@ -91,7 +91,7 @@ func (c *Client) FindTaxAdjustmentsWizard(criteria *Criteria) (*TaxAdjustmentsWi if taws != nil && len(*taws) > 0 { return &((*taws)[0]), nil } - return nil, fmt.Errorf("no tax.adjustments.wizard was found with criteria %v", criteria) + return nil, fmt.Errorf("tax.adjustments.wizard was not found with criteria %v", criteria) } // FindTaxAdjustmentsWizards finds tax.adjustments.wizard records by querying it @@ -123,5 +123,5 @@ func (c *Client) FindTaxAdjustmentsWizardId(criteria *Criteria, options *Options if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no tax.adjustments.wizard was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("tax.adjustments.wizard was not found with criteria %v and options %v", criteria, options) } diff --git a/utm_campaign.go b/utm_campaign.go index 5d6cea31..68aa7981 100644 --- a/utm_campaign.go +++ b/utm_campaign.go @@ -83,7 +83,7 @@ func (c *Client) FindUtmCampaign(criteria *Criteria) (*UtmCampaign, error) { if ucs != nil && len(*ucs) > 0 { return &((*ucs)[0]), nil } - return nil, fmt.Errorf("no utm.campaign was found with criteria %v", criteria) + return nil, fmt.Errorf("utm.campaign was not found with criteria %v", criteria) } // FindUtmCampaigns finds utm.campaign records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindUtmCampaignId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no utm.campaign was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("utm.campaign was not found with criteria %v and options %v", criteria, options) } diff --git a/utm_medium.go b/utm_medium.go index 7fc05a86..59ea92dc 100644 --- a/utm_medium.go +++ b/utm_medium.go @@ -84,7 +84,7 @@ func (c *Client) FindUtmMedium(criteria *Criteria) (*UtmMedium, error) { if ums != nil && len(*ums) > 0 { return &((*ums)[0]), nil } - return nil, fmt.Errorf("no utm.medium was found with criteria %v", criteria) + return nil, fmt.Errorf("utm.medium was not found with criteria %v", criteria) } // FindUtmMediums finds utm.medium records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindUtmMediumId(criteria *Criteria, options *Options) (int64, e if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no utm.medium was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("utm.medium was not found with criteria %v and options %v", criteria, options) } diff --git a/utm_mixin.go b/utm_mixin.go index b64c1e31..a3a07f28 100644 --- a/utm_mixin.go +++ b/utm_mixin.go @@ -81,7 +81,7 @@ func (c *Client) FindUtmMixin(criteria *Criteria) (*UtmMixin, error) { if ums != nil && len(*ums) > 0 { return &((*ums)[0]), nil } - return nil, fmt.Errorf("no utm.mixin was found with criteria %v", criteria) + return nil, fmt.Errorf("utm.mixin was not found with criteria %v", criteria) } // FindUtmMixins finds utm.mixin records by querying it @@ -113,5 +113,5 @@ func (c *Client) FindUtmMixinId(criteria *Criteria, options *Options) (int64, er if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no utm.mixin was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("utm.mixin was not found with criteria %v and options %v", criteria, options) } diff --git a/utm_source.go b/utm_source.go index 4e926532..7f4d2430 100644 --- a/utm_source.go +++ b/utm_source.go @@ -83,7 +83,7 @@ func (c *Client) FindUtmSource(criteria *Criteria) (*UtmSource, error) { if uss != nil && len(*uss) > 0 { return &((*uss)[0]), nil } - return nil, fmt.Errorf("no utm.source was found with criteria %v", criteria) + return nil, fmt.Errorf("utm.source was not found with criteria %v", criteria) } // FindUtmSources finds utm.source records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindUtmSourceId(criteria *Criteria, options *Options) (int64, e if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no utm.source was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("utm.source was not found with criteria %v and options %v", criteria, options) } diff --git a/validate_account_move.go b/validate_account_move.go index 10dd1b1f..97d11533 100644 --- a/validate_account_move.go +++ b/validate_account_move.go @@ -82,7 +82,7 @@ func (c *Client) FindValidateAccountMove(criteria *Criteria) (*ValidateAccountMo if vams != nil && len(*vams) > 0 { return &((*vams)[0]), nil } - return nil, fmt.Errorf("no validate.account.move was found with criteria %v", criteria) + return nil, fmt.Errorf("validate.account.move was not found with criteria %v", criteria) } // FindValidateAccountMoves finds validate.account.move records by querying it @@ -114,5 +114,5 @@ func (c *Client) FindValidateAccountMoveId(criteria *Criteria, options *Options) if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no validate.account.move was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("validate.account.move was not found with criteria %v and options %v", criteria, options) } diff --git a/web_editor_converter_test.go b/web_editor_converter_test.go index bb509594..d552e035 100644 --- a/web_editor_converter_test.go +++ b/web_editor_converter_test.go @@ -94,7 +94,7 @@ func (c *Client) FindWebEditorConverterTest(criteria *Criteria) (*WebEditorConve if wcts != nil && len(*wcts) > 0 { return &((*wcts)[0]), nil } - return nil, fmt.Errorf("no web_editor.converter.test was found with criteria %v", criteria) + return nil, fmt.Errorf("web_editor.converter.test was not found with criteria %v", criteria) } // FindWebEditorConverterTests finds web_editor.converter.test records by querying it @@ -126,5 +126,5 @@ func (c *Client) FindWebEditorConverterTestId(criteria *Criteria, options *Optio if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no web_editor.converter.test was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("web_editor.converter.test was not found with criteria %v and options %v", criteria, options) } diff --git a/web_editor_converter_test_sub.go b/web_editor_converter_test_sub.go index 60259129..3c9c1fc8 100644 --- a/web_editor_converter_test_sub.go +++ b/web_editor_converter_test_sub.go @@ -83,7 +83,7 @@ func (c *Client) FindWebEditorConverterTestSub(criteria *Criteria) (*WebEditorCo if wctss != nil && len(*wctss) > 0 { return &((*wctss)[0]), nil } - return nil, fmt.Errorf("no web_editor.converter.test.sub was found with criteria %v", criteria) + return nil, fmt.Errorf("web_editor.converter.test.sub was not found with criteria %v", criteria) } // FindWebEditorConverterTestSubs finds web_editor.converter.test.sub records by querying it @@ -115,5 +115,5 @@ func (c *Client) FindWebEditorConverterTestSubId(criteria *Criteria, options *Op if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no web_editor.converter.test.sub was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("web_editor.converter.test.sub was not found with criteria %v and options %v", criteria, options) } diff --git a/web_planner.go b/web_planner.go index f08ea32c..06538307 100644 --- a/web_planner.go +++ b/web_planner.go @@ -90,7 +90,7 @@ func (c *Client) FindWebPlanner(criteria *Criteria) (*WebPlanner, error) { if wps != nil && len(*wps) > 0 { return &((*wps)[0]), nil } - return nil, fmt.Errorf("no web.planner was found with criteria %v", criteria) + return nil, fmt.Errorf("web.planner was not found with criteria %v", criteria) } // FindWebPlanners finds web.planner records by querying it @@ -122,5 +122,5 @@ func (c *Client) FindWebPlannerId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no web.planner was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("web.planner was not found with criteria %v and options %v", criteria, options) } diff --git a/web_tour_tour.go b/web_tour_tour.go index e8cc28d5..fb0f33ff 100644 --- a/web_tour_tour.go +++ b/web_tour_tour.go @@ -80,7 +80,7 @@ func (c *Client) FindWebTourTour(criteria *Criteria) (*WebTourTour, error) { if wts != nil && len(*wts) > 0 { return &((*wts)[0]), nil } - return nil, fmt.Errorf("no web_tour.tour was found with criteria %v", criteria) + return nil, fmt.Errorf("web_tour.tour was not found with criteria %v", criteria) } // FindWebTourTours finds web_tour.tour records by querying it @@ -112,5 +112,5 @@ func (c *Client) FindWebTourTourId(criteria *Criteria, options *Options) (int64, if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no web_tour.tour was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("web_tour.tour was not found with criteria %v and options %v", criteria, options) } diff --git a/wizard_ir_model_menu_create.go b/wizard_ir_model_menu_create.go index defc58cf..1865c9ca 100644 --- a/wizard_ir_model_menu_create.go +++ b/wizard_ir_model_menu_create.go @@ -84,7 +84,7 @@ func (c *Client) FindWizardIrModelMenuCreate(criteria *Criteria) (*WizardIrModel if wimmcs != nil && len(*wimmcs) > 0 { return &((*wimmcs)[0]), nil } - return nil, fmt.Errorf("no wizard.ir.model.menu.create was found with criteria %v", criteria) + return nil, fmt.Errorf("wizard.ir.model.menu.create was not found with criteria %v", criteria) } // FindWizardIrModelMenuCreates finds wizard.ir.model.menu.create records by querying it @@ -116,5 +116,5 @@ func (c *Client) FindWizardIrModelMenuCreateId(criteria *Criteria, options *Opti if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no wizard.ir.model.menu.create was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("wizard.ir.model.menu.create was not found with criteria %v and options %v", criteria, options) } diff --git a/wizard_multi_charts_accounts.go b/wizard_multi_charts_accounts.go index 7db3a8da..14c2b641 100644 --- a/wizard_multi_charts_accounts.go +++ b/wizard_multi_charts_accounts.go @@ -97,7 +97,7 @@ func (c *Client) FindWizardMultiChartsAccounts(criteria *Criteria) (*WizardMulti if wmcas != nil && len(*wmcas) > 0 { return &((*wmcas)[0]), nil } - return nil, fmt.Errorf("no wizard.multi.charts.accounts was found with criteria %v", criteria) + return nil, fmt.Errorf("wizard.multi.charts.accounts was not found with criteria %v", criteria) } // FindWizardMultiChartsAccountss finds wizard.multi.charts.accounts records by querying it @@ -129,5 +129,5 @@ func (c *Client) FindWizardMultiChartsAccountsId(criteria *Criteria, options *Op if len(ids) > 0 { return ids[0], nil } - return -1, fmt.Errorf("no wizard.multi.charts.accounts was found with criteria %v and options %v", criteria, options) + return -1, fmt.Errorf("wizard.multi.charts.accounts was not found with criteria %v and options %v", criteria, options) }