mirror of
https://github.com/veeso/termscp.git
synced 2026-09-26 05:51:20 -07:00
fix: correct typos in BadSytax and theme_provider log messages
This commit is contained in:
@@ -37,7 +37,7 @@ impl KeyStorage for KeyringStorage {
|
|||||||
| KeyringError::Invalid(_, _)
|
| KeyringError::Invalid(_, _)
|
||||||
| KeyringError::Ambiguous(_) => Err(KeyStorageError::ProviderError),
|
| KeyringError::Ambiguous(_) => Err(KeyStorageError::ProviderError),
|
||||||
KeyringError::BadEncoding(_) | KeyringError::TooLong(_, _) => {
|
KeyringError::BadEncoding(_) | KeyringError::TooLong(_, _) => {
|
||||||
Err(KeyStorageError::BadSytax)
|
Err(KeyStorageError::BadSyntax)
|
||||||
}
|
}
|
||||||
_ => Err(KeyStorageError::ProviderError),
|
_ => Err(KeyStorageError::ProviderError),
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ use thiserror::Error;
|
|||||||
#[derive(Debug, Error)]
|
#[derive(Debug, Error)]
|
||||||
pub enum KeyStorageError {
|
pub enum KeyStorageError {
|
||||||
#[error("Key has a bad syntax")]
|
#[error("Key has a bad syntax")]
|
||||||
BadSytax,
|
BadSyntax,
|
||||||
#[error("Provider service error")]
|
#[error("Provider service error")]
|
||||||
ProviderError,
|
ProviderError,
|
||||||
#[error("No such key")]
|
#[error("No such key")]
|
||||||
@@ -54,7 +54,7 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn test_system_keys_mod_errors() {
|
fn test_system_keys_mod_errors() {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
KeyStorageError::BadSytax.to_string(),
|
KeyStorageError::BadSyntax.to_string(),
|
||||||
String::from("Key has a bad syntax")
|
String::from("Key has a bad syntax")
|
||||||
);
|
);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ impl ThemeProvider {
|
|||||||
pub fn new(theme_path: &Path) -> Result<Self, SerializerError> {
|
pub fn new(theme_path: &Path) -> Result<Self, SerializerError> {
|
||||||
let default_theme: Theme = Theme::default();
|
let default_theme: Theme = Theme::default();
|
||||||
info!(
|
info!(
|
||||||
"Setting up theme provider with thene path {} ",
|
"Setting up theme provider with theme path {}",
|
||||||
theme_path.display(),
|
theme_path.display(),
|
||||||
);
|
);
|
||||||
// Create provider
|
// Create provider
|
||||||
@@ -42,7 +42,7 @@ impl ThemeProvider {
|
|||||||
} else {
|
} else {
|
||||||
// otherwise Load configuration from file
|
// otherwise Load configuration from file
|
||||||
if let Err(err) = provider.load() {
|
if let Err(err) = provider.load() {
|
||||||
error!("Couldn't read thene file: {}", err);
|
error!("Couldn't read theme file: {}", err);
|
||||||
return Err(err);
|
return Err(err);
|
||||||
}
|
}
|
||||||
debug!("Read theme file");
|
debug!("Read theme file");
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ use super::{Context, Id, IdCommon, IdTheme, SetupActivity, Theme, ViewLayout, co
|
|||||||
impl SetupActivity {
|
impl SetupActivity {
|
||||||
// -- view
|
// -- view
|
||||||
|
|
||||||
/// Initialize thene view
|
/// Initialize theme view
|
||||||
pub(super) fn init_theme(&mut self) {
|
pub(super) fn init_theme(&mut self) {
|
||||||
// Init view (and mount commons)
|
// Init view (and mount commons)
|
||||||
self.new_app(ViewLayout::Theme);
|
self.new_app(ViewLayout::Theme);
|
||||||
|
|||||||
Reference in New Issue
Block a user