When a command-line program displays some output, the output is either sent to
stdout ("fd 1", for normal messages) or
stderr ("fd 2", for error messages).
Magnus Box will mark a Before/After command as a warning if there was content on
stderr, or, if the command had a non-zero exit code.
If you are certain that the command cannot fail, you can
- redirect stderr messages to go to stdout instead, by adding 2>&1 to the end of your command
- override the command exit code, by adding to the end of your command
- Windows: &exit 0
- Linux and macOS: ; exit 0
The above information is not Magnus Box-specific; more information about
2>&1 and stdout redirection can be found online, e.g. https://support.microsoft.com/en-nz/help/110930/redirecting-error-messages-from-command-prompt-stderr-stdout .