Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eskip: improve invalid predicate arguments error message #3380

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

AlexanderYastrebov
Copy link
Member

Add route id and predicate name to the error message.

Add route id and predicate name to the error message.

Signed-off-by: Alexander Yastrebov <[email protected]>
@AlexanderYastrebov AlexanderYastrebov added the minor no risk changes, for example new filters label Jan 20, 2025
Comment on lines +537 to +542
if err != nil {
return fmt.Errorf("invalid route %q: %w", proute.id, err)
}
}

return err
return nil
Copy link
Member Author

@AlexanderYastrebov AlexanderYastrebov Jan 20, 2025

Choose a reason for hiding this comment

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

Moved error check inside of the loop to add route id.

Its also a cleaner fix for #169 then #170 was.

@MustafaSaber
Copy link
Member

👍

1 similar comment
@AlexanderYastrebov
Copy link
Member Author

👍

@AlexanderYastrebov AlexanderYastrebov merged commit df9f6df into master Jan 20, 2025
14 checks passed
@AlexanderYastrebov AlexanderYastrebov deleted the eskip/improve-invalid-predicate-errors branch January 20, 2025 16:36
AlexanderYastrebov added a commit to zalando-incubator/kubernetes-on-aws that referenced this pull request Jan 23, 2025
* update main version
* configure `-kubernetes-annotation-filters-append` and
  `-kubernetes-east-west-range-annotation-filters-append` (added by zalando/skipper#3376)

Pull requests:

* zalando/skipper#3371
* zalando/skipper#3368
* zalando/skipper#3369
* zalando/skipper#3370
* zalando/skipper#3372
* zalando/skipper#3373
* zalando/skipper#3374
* zalando/skipper#3375
* zalando/skipper#3380
* zalando/skipper#3376
* zalando/skipper#3381
* zalando/skipper#3379
* zalando/skipper#3378

See:
* [changes](zalando/skipper@v0.21.247...v0.21.257)
* #8791

Signed-off-by: Alexander Yastrebov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor no risk changes, for example new filters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants