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

Oh Noes renders HTML tags when ProcessingJS throws an error #735

Open
pamelafox opened this issue Aug 7, 2020 · 0 comments
Open

Oh Noes renders HTML tags when ProcessingJS throws an error #735

pamelafox opened this issue Aug 7, 2020 · 0 comments
Labels

Comments

@pamelafox
Copy link
Collaborator

Try a program with just:

bezierVertex(100, 10, 20, 20, 20, 20);

You'll then see:

Oh noes!
vertex() must be used at least once before calling bezierVertex()

ProcessingJS throws() the text, and then we wrap it in the span but display it as text:

        if (typeof error === "string") {
            newError.text = this.clean(this.prettify(error));
        }

I wonder if we actually need to call prettify() in that situation- perhaps not. I'm not sure what other situations trigger that code path.

@pamelafox pamelafox added the pjs label Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant