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

Improved error message when no date adapter provided #9147

Merged
merged 1 commit into from May 22, 2021

Conversation

etimberg
Copy link
Member

Resolves #9141

@etimberg etimberg added this to the Version 3.3 milestone May 21, 2021
@@ -8,7 +8,7 @@
* @return {*}
*/
function abstract() {
throw new Error('This method is not implemented: either no adapter can be found or an incomplete integration was provided.');
throw new Error('This method is not implemented: Check that a complete date adapter is provided.');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wouldnt it be better to use a variable for the type of adapter so that if in the future extra adapters are needed/added you dont have to change it again and can just pass that adapter name

Copy link
Member

Choose a reason for hiding this comment

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

IMO that can be left for the future, trivial to update with a variable when its actually needed

@etimberg etimberg merged commit 087f9c3 into chartjs:master May 22, 2021
@etimberg etimberg deleted the update-date-adapter-error-message branch May 22, 2021 12:59
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.

Error message for missing date adapter does not indicate a date-related problem
3 participants