Skip to content

Show invalid parser as error in the logger#495

Merged
bosd merged 1 commit intoinvoice-x:masterfrom
bosd:parser-error
Mar 30, 2023
Merged

Show invalid parser as error in the logger#495
bosd merged 1 commit intoinvoice-x:masterfrom
bosd:parser-error

Conversation

@bosd
Copy link
Copy Markdown
Collaborator

@bosd bosd commented Mar 14, 2023

Change logger levels.

  1. In case an template specifies no or an invalid parser show it in the logger.

(This is usefull when someone wants to commit an template, pytest on hg actions will show the error).
The user will then be aware that the template needs fixing.

  1. In case an invoice file does not return a value, only show a warning.
    In Example coolblue #428 is a template which support multiple invoice layouts. In some cases the website field is not matched. This is intentional. This should only show as a warning in the logger. This is not an error that needs immediate fixing.

@bosd bosd merged commit c842025 into invoice-x:master Mar 30, 2023
@bosd bosd deleted the parser-error branch March 30, 2023 21:40
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