aboutsummaryrefslogtreecommitdiff
path: root/bin/src/err.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bin/src/err.rs')
-rw-r--r--bin/src/err.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/src/err.rs b/bin/src/err.rs
index b3a79c2..c9db4d5 100644
--- a/bin/src/err.rs
+++ b/bin/src/err.rs
@@ -20,9 +20,17 @@ pub enum LintErr {
20} 20}
21 21
22#[derive(Error, Debug)] 22#[derive(Error, Debug)]
23pub enum FixErr {
24 #[error("[{0}] syntax error: {1}")]
25 Parse(PathBuf, ParseError),
26}
27
28#[derive(Error, Debug)]
23pub enum StatixErr { 29pub enum StatixErr {
24 #[error("linter error: {0}")] 30 #[error("linter error: {0}")]
25 Lint(#[from] LintErr), 31 Lint(#[from] LintErr),
32 #[error("fixer error: {0}")]
33 Fix(#[from] FixErr),
26 #[error("config error: {0}")] 34 #[error("config error: {0}")]
27 Config(#[from] ConfigErr), 35 Config(#[from] ConfigErr),
28} 36}