Make Open return error when sanity fails

This commit is contained in:
Phil Olynyk 2020-02-16 21:41:56 -05:00
parent a094aee728
commit c671e873a3

View File

@ -485,7 +485,7 @@ int ResmedLoader::Open(const QString & dirpath)
if ( ! ProcessSTRfiles(mach, STRmap, firstImportDay) ) { if ( ! ProcessSTRfiles(mach, STRmap, firstImportDay) ) {
qCritical() << "ProcessSTR failed, abandoning this import"; qCritical() << "ProcessSTR failed, abandoning this import";
return 0; return -1;
} }
// We are done with the Parsed STR EDF objects, so delete them // We are done with the Parsed STR EDF objects, so delete them