Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Fatal errors from API should be unhandled and caught in tslint-cli #1764

Merged
merged 1 commit into from
Nov 21, 2016

Conversation

nchen63
Copy link
Contributor

@nchen63 nchen63 commented Nov 21, 2016

fixes #1759

3rd party apps should be able to see the fatal errors thrown by the API. #1686 changed it so that the error was caught and added as a property to IConfigurationLoadResult. It's not reasonable for 3rd party apps to be aware of this property, so we should follow convention and throw an unhandled exception that the app itself can handle.

This change creates a new FatalError class which is caught in tslint.cli.

@nchen63
Copy link
Contributor Author

nchen63 commented Nov 21, 2016

@JoshuaKGoldberg fyi

@nchen63 nchen63 merged commit 69a32e6 into master Nov 21, 2016
@adidahiya adidahiya deleted the error branch November 21, 2016 21:40
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.

When tslint.json uses extends, some rules can't be disabled
1 participant