Skip to content

Add handling for json parse errors in tsconfig#5589

Merged
weswigham merged 2 commits intomicrosoft:masterfrom
weswigham:tsconfig-error-handling
Nov 10, 2015
Merged

Add handling for json parse errors in tsconfig#5589
weswigham merged 2 commits intomicrosoft:masterfrom
weswigham:tsconfig-error-handling

Conversation

@weswigham
Copy link
Copy Markdown
Member

Previously we would error within parseJsonConfigFileContent on an attempt to index an undefined value whenever we returned an error from parseConfigFileTextToJson (Which occurs anytime a tsconfig.json file has malformed JSON).

Also fixes #4590

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Nov 10, 2015

👍

@vladima
Copy link
Copy Markdown
Contributor

vladima commented Nov 10, 2015

this change looks good. Maybe since you are already changing this part of the code you can add better error message for cases when tsconfig.json file is missing (#4590)?

@weswigham
Copy link
Copy Markdown
Member Author

@vladima done.

@vladima
Copy link
Copy Markdown
Contributor

vladima commented Nov 10, 2015

👍

weswigham added a commit that referenced this pull request Nov 10, 2015
Add handling for json parse errors in tsconfig
@weswigham weswigham merged commit 75364b6 into microsoft:master Nov 10, 2015
@weswigham weswigham deleted the tsconfig-error-handling branch August 17, 2017 23:04
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Misleading error message when project arguments points to folder that lacks 'tsconfig.json'

4 participants