diff options
author | Akshay <[email protected]> | 2022-01-14 16:51:42 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2022-01-14 16:51:42 +0000 |
commit | 305960c98b3b71d4b915003430730c76fcda3af3 (patch) | |
tree | 09a428186f1aaacca8c4447f2feb7e08aa204217 /bin/src/err.rs | |
parent | 7d732a051e695353db5a3ddbb26ab766ff736043 (diff) |
add dump command, support version overrides in statix.tomlsession-info
Diffstat (limited to 'bin/src/err.rs')
-rw-r--r-- | bin/src/err.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/src/err.rs b/bin/src/err.rs index f44d27b..8124c1f 100644 --- a/bin/src/err.rs +++ b/bin/src/err.rs | |||
@@ -1,7 +1,5 @@ | |||
1 | use std::io; | 1 | use std::io; |
2 | 2 | ||
3 | // use globset::ErrorKind; | ||
4 | // use rnix::parser::ParseError; | ||
5 | use thiserror::Error; | 3 | use thiserror::Error; |
6 | 4 | ||
7 | #[derive(Error, Debug)] | 5 | #[derive(Error, Debug)] |
@@ -14,8 +12,10 @@ pub enum ConfigErr { | |||
14 | InvalidPosition(String), | 12 | InvalidPosition(String), |
15 | #[error("unable to parse `{0}` as warning code")] | 13 | #[error("unable to parse `{0}` as warning code")] |
16 | InvalidWarningCode(String), | 14 | InvalidWarningCode(String), |
17 | #[error("unable to parse config file, error at: `{0}`")] | 15 | #[error("unable to parse config file: {0}")] |
18 | ConfFileParse(String), | 16 | ConfFileParse(toml::de::Error), |
17 | #[error("unable to parse nix version: `{0}`")] | ||
18 | ConfFileVersionParse(String), | ||
19 | } | 19 | } |
20 | 20 | ||
21 | // #[derive(Error, Debug)] | 21 | // #[derive(Error, Debug)] |