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

Bad ait-plot-config JSON object crashes the GUI #72

Closed
jordanpadams opened this issue Jun 2, 2018 · 1 comment
Closed

Bad ait-plot-config JSON object crashes the GUI #72

jordanpadams opened this issue Jun 2, 2018 · 1 comment
Assignees

Comments

@jordanpadams
Copy link
Contributor

I was missing a quote in one of my plot configs, and it started throwing continuous errors. We should probably catch a bad JSON object and just move on.

Config

                <ait-plot-config>
                  {
                    "foobar": "CCE AC Voltage,
                    "ylabel": "Voltage (DN)"
                  }
                </ait-plot-config>

Error

Uncaught SyntaxError: Unexpected token 
 in JSON at position 67
    at JSON.parse (<anonymous>)
    at Object.processTag (ait.bundle.js:22937)
    at ait.bundle.js:23006
    at Array.forEach (<anonymous>)
    at Object.oninit (ait.bundle.js:23005)
    at initLifecycle (ait.bundle.js:1034)
    at initComponent (ait.bundle.js:577)
    at createComponent (ait.bundle.js:583)
    at createNode (ait.bundle.js:499)
    at createNodes (ait.bundle.js:483)
@MJJoyce
Copy link
Member

MJJoyce commented Jun 4, 2018

+1, good call @jordanpadams. That's not terribly user-friendly as is.

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

3 participants