Skip to content

Show how to return a custom error with the Starlark processor#8439

Merged
ssoroka merged 2 commits intoinfluxdata:masterfrom
essobedo:8403/custom_error
Nov 20, 2020
Merged

Show how to return a custom error with the Starlark processor#8439
ssoroka merged 2 commits intoinfluxdata:masterfrom
essobedo:8403/custom_error

Conversation

@essobedo
Copy link
Copy Markdown
Contributor

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

Fix for #8403

Motivation

It seems to be unclear for end-users to return a custom error with the Starlark processor

Modifications

  • Adds a new Starlark script to show how to return a custom error thanks to the function fail
  • Adds the corresponding unit test that proves that it works as expected
  • Refers the new Starlark script from the README.md

Copy link
Copy Markdown
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Looks good.

@srebhan srebhan self-assigned this Nov 20, 2020
@ssoroka ssoroka merged commit bbd4e80 into influxdata:master Nov 20, 2020
@essobedo essobedo deleted the 8403/custom_error branch November 21, 2020 10:35
ssoroka pushed a commit that referenced this pull request Dec 1, 2020
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants