From c300ffd130e3e6df0942c1e93402bacbb320e02c Mon Sep 17 00:00:00 2001 From: notplants Date: Mon, 15 Nov 2021 14:15:06 +0100 Subject: [PATCH] Response to code review --- src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 {