Changed an error type in MidiFile.