diff --git a/src/lib.rs b/src/lib.rs index 89fccde..297f3fa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -376,7 +376,8 @@ impl Sbot { /// # Arguments /// /// * `name` - A string slice representing a profile name (bio) - /// * `id` - A string slice representing a id (profile reference / public key) of who the name is for + /// * `id` - A string slice representing the id (profile reference / public key) + /// of the profile being named /// pub fn publish_name(&self, id: &str, name: &str) -> Result { let output = Command::new(&self.sbotcli_path) @@ -518,7 +519,7 @@ impl Sbot { }, // if the regex does not match, then return an error None => { - Err(SbotCliError::WhoAmI("Error calling whoami: regex not matched".to_string())) + Err(SbotCliError::WhoAmI("Error calling whoami: failed to capture the id value using regex".to_string())) } } } else {