I see, thanks.
Out of curiosity I've looked at the other commands we use in the converter. abc2midi takes output file (-o). All messages go to stdout (>msg.txt for me).
abcm2ps (which, as you know is not part of the abcmidi package) does send its error messages to stderr (2>msg.txt for me).