Skip to content
Permalink
Browse files

Warn on invalid MIDI file.

  • Loading branch information...
me4502 committed Jul 6, 2019
1 parent baf3c62 commit f3dc595cdc99e4c717ebf4357adec999e1634392
@@ -122,7 +122,9 @@ public void trigger(ChipState chip) {
player = new MelodyPlayer(new MidiJingleSequencer(file, loop));
hasRun = false;
} catch (MidiUnavailableException | IOException | InvalidMidiDataException e) {
CraftBookPlugin.logger().warning("Found invalid MIDI file: " + file);
e.printStackTrace();
foundFile = false;
}
}

0 comments on commit f3dc595

Please sign in to comment.
You can’t perform that action at this time.