mojira.dev
MCPE-236166

/execute produces extra error message on failure

The bug

The /execute command produces the outputs of all of the commands that it runs. However, for any that fail, it produces the additional message “Failed to execute ‘[command]’ as [sender]'”. This muddies the output, especially in command blocks, and goes against the pattern of one output message per command run.

How to reproduce

  1. Run /setblock ~ ~ ~ air while standing in air

  2. Now run /execute run setblock ~ ~ ~ air

Expected result

Both commands should have the same output

Observed result

The second command produces a superfluous second error message

Linked issues

Comments 0

No comments.

tryashtar

(Unassigned)

1562802

Confirmed

Windows

26.0, 26.10.23 Preview

Retrieved