Fix missing errors in mmctl output (#30567)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4156112f7c
Коммит
6c8235d031
@@ -294,7 +294,7 @@ func modifyCommandCmdF(c client.Client, cmd *cobra.Command, args []string) error
|
||||
|
||||
modifiedCommand, _, err := c.UpdateCommand(context.TODO(), command)
|
||||
if err != nil {
|
||||
return fmt.Errorf("unable to modify command '%s'. %s", command.DisplayName, err.Error())
|
||||
return fmt.Errorf("unable to modify command '%s': %w", command.DisplayName, err)
|
||||
}
|
||||
|
||||
printer.PrintT("modified command {{.DisplayName}}", modifiedCommand)
|
||||
@@ -316,7 +316,7 @@ func moveCommandCmdF(c client.Client, cmd *cobra.Command, args []string) error {
|
||||
|
||||
resp, err := c.MoveCommand(context.TODO(), newTeam.Id, command.Id)
|
||||
if err != nil {
|
||||
return fmt.Errorf("unable to move command '%s'. %s", command.Id, err.Error())
|
||||
return fmt.Errorf("unable to move command '%s': %w", command.Id, err)
|
||||
}
|
||||
|
||||
if resp.StatusCode == http.StatusOK {
|
||||
|
||||
Ссылка в новой задаче
Block a user