thestk/rtmidi — pull request #16 by keinstein (2014-03-26 21:13:26+00:00)
Title: Call perror on uncknown errors in the MIDI queue.

In rare cases the system reports other errors than MIDI queue overrun for ALSA API. In these cases RtMidi should report the issue. perror is the function that has been designed to this case.

Even though this patch is hard to test – I didn't manage to reproduce the error as I don't know what it was, the function perror should be considered to be save to call in order to print the last system error to stdout. Another option would be to use strerror to change the error message.