aboutsummaryrefslogtreecommitdiff
path: root/bin/src/err.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-10-23 08:11:52 +0100
committerAkshay <[email protected]>2021-10-23 08:11:52 +0100
commitc2f0582d1907dbef69e9ad42ba9d4301337fe1e8 (patch)
treeaacf975dfeb8bd416b70abfe8a21a2ce7c325d0c /bin/src/err.rs
parentdfcdaf91674461a5150902cb3fdb8f198367ff20 (diff)
initial implementation of multipass code fixer
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}