From 305960c98b3b71d4b915003430730c76fcda3af3 Mon Sep 17 00:00:00 2001 From: Akshay Date: Fri, 14 Jan 2022 22:21:42 +0530 Subject: add dump command, support version overrides in statix.toml --- bin/src/err.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin/src/err.rs') 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 @@ use std::io; -// use globset::ErrorKind; -// use rnix::parser::ParseError; use thiserror::Error; #[derive(Error, Debug)] @@ -14,8 +12,10 @@ pub enum ConfigErr { InvalidPosition(String), #[error("unable to parse `{0}` as warning code")] InvalidWarningCode(String), - #[error("unable to parse config file, error at: `{0}`")] - ConfFileParse(String), + #[error("unable to parse config file: {0}")] + ConfFileParse(toml::de::Error), + #[error("unable to parse nix version: `{0}`")] + ConfFileVersionParse(String), } // #[derive(Error, Debug)] -- cgit v1.2.3