Propagate errors from file identification upwards better.

This commit is contained in:
Henrik Rydgård committed 2021-08-07 11:54:45 +02:00
1 parent af3ad2ca03
commit 43ba908225
8 files changed
+58 -30

No files matched your search

+2 -1
View File
@@ -74,7 +74,8 @@ bool LaunchFile(ScreenManager *screenManager, const Path &path) {
return false;
}
IdentifiedFileType type = Identify_File(loader);
std::string errorString;
IdentifiedFileType type = Identify_File(loader, &errorString);
delete loader;
switch (type) {