From f1ee04393b3502dff8d8e50d585f0652bec3a0b9 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 30 Mar 2022 01:01:45 -0500 Subject: [PATCH] GUI: fix log error if MIDI map file doesn't exist --- src/gui/midiMap.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/midiMap.cpp b/src/gui/midiMap.cpp index 8d31892be..a72324413 100644 --- a/src/gui/midiMap.cpp +++ b/src/gui/midiMap.cpp @@ -67,7 +67,9 @@ bool MIDIMap::read(String path) { int curLine=1; FILE* f=fopen(path.c_str(),"rb"); if (f==NULL) { - logE("error while loading MIDI mapping! %s\n",strerror(errno)); + if (errno!=ENOENT) { + logE("error while loading MIDI mapping! %s\n",strerror(errno)); + } return false; }