midi: show failed stdout parsing when debug is true

This commit is contained in:
bordun 2020-06-24 12:29:05 +02:00
parent 5fe8a1db47
commit cc532f4363

View file

@ -63,7 +63,7 @@ class MidiConverter {
try {
[name, data] = JSON.parse(message)
} catch (err) {
// console.log(err)
if (settings.read('debug')) console.error(`(DEBUG, MIDI) Could not parse python's output:\n ${message}`)
}
if (name == 'log') {
if (data.indexOf('ERROR') > -1) {