forked from FuelLabs/sway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move DocumentError to use thiserror (FuelLabs#2968)
Related FuelLabs#2286 - adds `thiserror` to sway LSP and moves the existing `DocumentError` types over - adds `path` or `dir` to the document errors - logs the parsing errors using the LSP logging interface - adds 2 new error types, distinguishing between BuildPlan, Parse, and Compile errors - adds `ManifestFileNotFound` error - refactors functions to use `map_err` pattern instead of `match` - adds tests for the DocumentErrors Co-authored-by: Joshua Batty <[email protected]>
- Loading branch information
1 parent
800ac2f
commit 205073d
Showing
9 changed files
with
231 additions
and
119 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.