Skip to content

Hmrc errors#80

Merged
ac000 merged 2 commits intomasterfrom
hmrc-errors
Apr 26, 2025
Merged

Hmrc errors#80
ac000 merged 2 commits intomasterfrom
hmrc-errors

Conversation

@ac000
Copy link
Copy Markdown
Owner

@ac000 ac000 commented Apr 26, 2025

  • Add a macro to aid in adding new entries to mtd_hmrc_err_map[]
  • Update HMRC error codes for currently supported endpoints

ac000 added 2 commits April 26, 2025 15:51
This array is a mapping of MTD error codes to their string
representation.

It is quite a tedious thing to write with some near duplication.

We can improve the situation somewhat by creating a macro to do most of
the work of creating each entry, by simply passing the error code to it
and then let it create the index initialised member.

We keep some members in the old format as they use the full
MTD_HMRC_ERR_ name for the string.

Signed-off-by: Andrew Clayton <ac@sigsegv.uk>
Signed-off-by: Andrew Clayton <ac@sigsegv.uk>
@ac000 ac000 merged commit 155e929 into master Apr 26, 2025
8 checks passed
@ac000 ac000 deleted the hmrc-errors branch April 26, 2025 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant