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

Uncaught exception on incorrect font name #100

Open
SamStonehouse opened this issue May 7, 2017 · 3 comments
Open

Uncaught exception on incorrect font name #100

SamStonehouse opened this issue May 7, 2017 · 3 comments

Comments

@SamStonehouse
Copy link

I've been getting some exceptions which I believe are down to me incorrectly naming a font:

Uncaught (in promise) A {family: "Source Sans Pro Regular", style: "normal", weight: "normal", stretch: "normal"}

Would it be possible to have nicer error reporting than this?

@bramstein
Copy link
Owner

What kind of error message would you like to see in this case? I haven't been very satisfied with the rejection messages, so any input is welcome.

@SamStonehouse
Copy link
Author

I don't have a preference, just not an uncaught exception. An indication that it could be the font name would be useful, I'm not sure what else could cause it to fail.

@bramstein
Copy link
Owner

There are a couple of other cases that cause the font to fail loading (network, timeout, etc.), but it's hard to distinguish between them from JavaScript. I'll have a look and see if I can make it better.

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

No branches or pull requests

2 participants