Add error handling to playlist parsers

This commit is contained in:
Jonas Kvinge
2024-06-24 20:20:49 +02:00
parent 0038cf8c4e
commit 6446942e73
6 changed files with 39 additions and 13 deletions

View File

@@ -59,6 +59,7 @@ void ParserBase::LoadSong(const QString &filename_or_url, const qint64 beginning
}
else {
qLog(Error) << "Don't know how to handle" << url;
emit Error(tr("Don't know how to handle %1").arg(filename_or_url));
return;
}
}