Skip to content

Commit

Permalink
Updating error message for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
davidferlay committed Nov 23, 2022
1 parent 780bce5 commit f623fcb
Show file tree
Hide file tree
Showing 361 changed files with 722 additions and 722 deletions.
4 changes: 2 additions & 2 deletions account_abstract_payment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_account_tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_account_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_account_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_aged_trial_balance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_analytic_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_analytic_line.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_analytic_tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_balance_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_bank_accounts_wizard.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_bank_statement.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_bank_statement_cashbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_bank_statement_closebalance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_bank_statement_import.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_bank_statement_import_journal_creation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_bank_statement_line.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_cash_rounding.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_cashbox_line.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_chart_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_common_account_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_common_journal_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_common_partner_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
4 changes: 2 additions & 2 deletions account_common_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
Loading

0 comments on commit f623fcb

Please sign in to comment.