Response to code review

This commit is contained in:
notplants 2021-11-15 14:15:06 +01:00
parent 5837271675
commit c300ffd130

View File

@ -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<String, SbotCliError> {
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 {