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

Simplify question.addError() function API, allow to use string as parameter. #2045

andrewtelnov opened this issue Mar 25, 2020 · 0 comments


Copy link

@andrewtelnov andrewtelnov commented Mar 25, 2020

The following code is rather complex.
question.addError(new Survey.CustomError("my error text));
If a developer wants to show just an error with his text, the most common case. then the API should be question.addError(my error text);, as result the typescript API:
public addError(error: SurveyError | string).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.