fix message for selecting custom formatter

This commit is contained in:
Abraham Toriz 2022-08-29 19:05:02 -04:00
parent d2e35d8ba1
commit 8ec245038f
No known key found for this signature in database
GPG Key ID: D5B4A746DB5DD42A
1 changed files with 4 additions and 2 deletions

View File

@ -114,6 +114,8 @@ where
mod tests {
use crate::config::Config;
use pretty_assertions::assert_str_eq;
use super::*;
#[test]
@ -158,7 +160,7 @@ t config --formatter-search-paths <path>..");
});
let err = print_formatted("pollo", Vec::new(), &mut out, &mut err, &facts).unwrap_err();
assert_eq!(err.to_string(), "\
assert_str_eq!(err.to_string(), "\
Could not find a formatter with name 'pollo' in any of the following paths:
- /not/a/path
@ -168,6 +170,6 @@ which where taken from your config file located at
/etc/tiempo/config.toml
Perhaps is mispelled?");
Perhaps it is mispelled?");
}
}