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

TODO: handle nested error messages #34

Closed
Phaiax opened this issue Mar 13, 2015 · 0 comments
Closed

TODO: handle nested error messages #34

Phaiax opened this issue Mar 13, 2015 · 0 comments

Comments

@Phaiax
Copy link
Owner

Phaiax commented Mar 13, 2015

var U = {"wer": 33, "ttz": {"werwer": 77, "oo": [1,2,3]}}


U.ttz = 3;


/*ArcticTypescript: error   : Internal ArcticTypescript error during show_errors: 
[
    {
    "file":"c:/users/danie_000/appdata/roaming/sublime text 3/packages/arctictypescript/tests/issue30/main.ts",
    "start":{"line":6,"character":1},
    "end":{"line":6,"character":6},
    "text": {
             "messageText" : "Type 'number' is not assignable to type '{ \"werwer\": number; \"oo\": number[]; }'.",
             "category":1,
             "code":2322,
             "next": {
                "messageText":"Property '\"werwer\"' is missing in type 'Number'.",
                "category":1,
                "code":2324
             }
    },
    "code":2322,
    "phase":"Semantics",
    "category":"Error"
}
]

This gives this error structure. Text is a dict and not a string in this case, so

   'dict' object has no attribute 'replace'

will raise in ArcticTypescript

Phaiax added a commit that referenced this issue Mar 15, 2015
@Phaiax Phaiax closed this as completed Mar 15, 2015
Phaiax added a commit that referenced this issue Mar 15, 2015
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

1 participant