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

fix(#9747): throw error if outbound config is undefined #9748

Merged
merged 2 commits into from
Feb 3, 2025

Conversation

witash
Copy link
Contributor

@witash witash commented Jan 16, 2025

closes #9747

}
};

assert.throws(() => mapDocumentToPayload(doc, conf, 'test-doc'), /Mapping error/);
Copy link
Member

Choose a reason for hiding this comment

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

Can you please make these error assertions more specific, so we know which error is triggered. Something like:

Suggested change
assert.throws(() => mapDocumentToPayload(doc, conf, 'test-doc'), /Mapping error/);
assert.throws(() => mapDocumentToPayload(doc, conf, 'test-doc'), /Mapping error.*'expr' or 'path' is required/);

@andrablaj
Copy link
Member

@witash I see you added new commits to the PR. Is this work ready to be reviewed?

@andrablaj andrablaj requested a review from dianabarsan January 31, 2025 16:04
Copy link
Member

@dianabarsan dianabarsan left a comment

Choose a reason for hiding this comment

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

Sweet!!

@andrablaj andrablaj merged commit 00af934 into master Feb 3, 2025
46 checks passed
@andrablaj andrablaj deleted the 9747-raise-outbound-config-error branch February 3, 2025 15:03
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.

Misconfigurations in outbound push config result in unexpected behavior.
3 participants