Skip to content

Fix incorrect variable used in regex compile error message#29089

Merged
andig merged 1 commit intoevcc-io:masterfrom
sschritt:sschritt-pipeline-error-message-fix
Apr 13, 2026
Merged

Fix incorrect variable used in regex compile error message#29089
andig merged 1 commit intoevcc-io:masterfrom
sschritt:sschritt-pipeline-error-message-fix

Conversation

@sschritt
Copy link
Copy Markdown
Contributor

The error message in WithRegex uses the compiled regex (re) instead of the original input string (regex). When regexp.Compile fails, re is nil, which leads to an unhelpful error message.

This change ensures the original regex string is included in the error output.

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@andig andig merged commit 16f2f89 into evcc-io:master Apr 13, 2026
13 checks passed
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