-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert other errors to diagnostics when possible (#183)
* Use a diagnostic for script not found errors. I was thinking that we wanted a Location in case we wanted to combine this error with information about what's requesting the script, but we can always pull the Location off of the Diagnostic in that case, and in the meantime we get a nice diagnostic. * Convert duplicate dep error to diagnostic * Convert JSON syntax error to diagnostic * Convert cycle error to diagnostic It was sad to lose the cool ascii diagrams, but all of the wonderful logic got reused, and in the case of multi package cycles I think this will be clearer. * Remove CachingPackageJsonReaderError We're already passing in the script placeholder, so it can just throw a proper WireitError now. Also remove invalid-package-json error, as it's now replaced by json-syntax-error. * Fix tests on windows. * Address review feedback
- Loading branch information
Showing
7 changed files
with
260 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.