Skip to content

Display error message when cannot parse Header and Content#180

Open
bact wants to merge 2 commits into
spdx:mainfrom
bact:patch-1
Open

Display error message when cannot parse Header and Content#180
bact wants to merge 2 commits into
spdx:mainfrom
bact:patch-1

Conversation

@bact

@bact bact commented Jan 14, 2025

Copy link
Copy Markdown
Contributor

To let the user knows more about why there's an error when re.fullmatch(self.RE_EXTRACT_HEADER_CONTENT) does not match.

For example, in a case similar to spdx/spdx-3-model#947 (comment)

bact added 2 commits January 14, 2025 17:02
To let the user knows more about why there's an error.

For example, in a case similar to spdx/spdx-3-model#947 (comment)

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@zvr

zvr commented Jan 14, 2025

Copy link
Copy Markdown
Member

Thanks, @bact , but don't spend time implementing this.
Together with the new command line handling, there is now a custom logger.

I'm keeping this open to note the message and the condition, to port to the new logging method.

@bact

bact commented Jan 14, 2025

Copy link
Copy Markdown
Contributor Author

Thanks

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.

2 participants