[MM-47821]: fix searchUserCmdF to return proper errors (#24700)
* fix: fix searchUserCmdF to return proper errors * fix: fix broken tests * fix: fix go-ci issues * fix: fix more broken tests * fix: fix wrong function call on error getting user test * fix: fix e2e test --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
@@ -693,6 +693,7 @@ func searchUserCmdF(c client.Client, cmd *cobra.Command, args []string) error {
|
||||
users, err := getUsersFromArgs(c, args)
|
||||
if err != nil {
|
||||
printer.PrintError(err.Error())
|
||||
return err
|
||||
}
|
||||
|
||||
for i, user := range users {
|
||||
|
||||
Ссылка в новой задаче
Block a user