Skip to content

Commit c513f10

Browse files
committed
chore: improve error message consistency
1 parent b37c8a3 commit c513f10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cli/sharing.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (r *RootCmd) shareWorkspace(orgContext *OrganizationContext) *serpent.Comma
104104
}
105105
}
106106
if userID == "" {
107-
return xerrors.Errorf("Could not find user %s in the organization %s", username, org.Name)
107+
return xerrors.Errorf("could not find user %s in the organization %s", username, org.Name)
108108
}
109109

110110
workspaceRole, err := stringToWorkspaceRole(role)
@@ -139,7 +139,7 @@ func (r *RootCmd) shareWorkspace(orgContext *OrganizationContext) *serpent.Comma
139139
}
140140

141141
if orgGroup == nil {
142-
return xerrors.Errorf("Could not find group named %s belonging to the organization %s", groupName, org.Name)
142+
return xerrors.Errorf("could not find group named %s belonging to the organization %s", groupName, org.Name)
143143
}
144144

145145
workspaceRole, err := stringToWorkspaceRole(role)
@@ -161,7 +161,7 @@ func (r *RootCmd) shareWorkspace(orgContext *OrganizationContext) *serpent.Comma
161161

162162
workspaceACL, err := client.WorkspaceACL(inv.Context(), workspace.ID)
163163
if err != nil {
164-
return xerrors.Errorf("Could not fetch current workspace ACL after sharing %w", err)
164+
return xerrors.Errorf("could not fetch current workspace ACL after sharing %w", err)
165165
}
166166

167167
outputRows := make([]workspaceShareRow, 0)

0 commit comments

Comments
 (0)