GUI: fix log error if MIDI map file doesn't exist

This commit is contained in:
tildearrow 2022-03-30 01:01:45 -05:00
parent 12ade13580
commit f1ee04393b
1 changed files with 3 additions and 1 deletions

View File

@ -67,7 +67,9 @@ bool MIDIMap::read(String path) {
int curLine=1;
FILE* f=fopen(path.c_str(),"rb");
if (f==NULL) {
if (errno!=ENOENT) {
logE("error while loading MIDI mapping! %s\n",strerror(errno));
}
return false;
}