Skip to content

Core: Added better error message for missing grammars - #3311

Merged
RunDevelopment merged 1 commit into
PrismJS:masterfrom
RunDevelopment:issue3310
Feb 2, 2022
Merged

RunDevelopment merged 1 commit into
PrismJS:masterfrom
RunDevelopment:issue3310

Conversation

@RunDevelopment

Copy link
Copy Markdown
Member

As mentioned in #3310. The error message users get when incorrectly loading grammars is quite non-descriptive. I added a little error that says that there is no grammar for the input language.

@github-actions

Copy link
Copy Markdown

JS File Size Changes (gzipped)

A total of 1 files have changed, with a combined diff of +36 B (+1.2%).

Details
file master pull size diff % diff
components/prism-core.min.js 3.09 KB 3.13 KB +36 B +1.2%

Generated by 🚫 dangerJS against 0fddf4f

@JaKXz JaKXz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍🏽

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.

2 participants