From c671e873a32545864990b7d2d043170badfc4ef0 Mon Sep 17 00:00:00 2001 From: Phil Olynyk Date: Sun, 16 Feb 2020 21:41:56 -0500 Subject: [PATCH] Make Open return error when sanity fails --- oscar/SleepLib/loader_plugins/resmed_loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oscar/SleepLib/loader_plugins/resmed_loader.cpp b/oscar/SleepLib/loader_plugins/resmed_loader.cpp index 3efa0da0..3c529f7c 100644 --- a/oscar/SleepLib/loader_plugins/resmed_loader.cpp +++ b/oscar/SleepLib/loader_plugins/resmed_loader.cpp @@ -485,7 +485,7 @@ int ResmedLoader::Open(const QString & dirpath) if ( ! ProcessSTRfiles(mach, STRmap, firstImportDay) ) { qCritical() << "ProcessSTR failed, abandoning this import"; - return 0; + return -1; } // We are done with the Parsed STR EDF objects, so delete them