Response to code review
This commit is contained in:
parent
5837271675
commit
c300ffd130
|
@ -376,7 +376,8 @@ impl Sbot {
|
||||||
/// # Arguments
|
/// # Arguments
|
||||||
///
|
///
|
||||||
/// * `name` - A string slice representing a profile name (bio)
|
/// * `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> {
|
pub fn publish_name(&self, id: &str, name: &str) -> Result<String, SbotCliError> {
|
||||||
let output = Command::new(&self.sbotcli_path)
|
let output = Command::new(&self.sbotcli_path)
|
||||||
|
@ -518,7 +519,7 @@ impl Sbot {
|
||||||
},
|
},
|
||||||
// if the regex does not match, then return an error
|
// if the regex does not match, then return an error
|
||||||
None => {
|
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 {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue