From a8356cd258ebe7971f445717bb0ad17f720420d6 Mon Sep 17 00:00:00 2001 From: kradchen Date: Wed, 11 Sep 2024 09:19:03 +0800 Subject: [PATCH] feat: Add exit code for error --- src/startReconstructions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/startReconstructions.cpp b/src/startReconstructions.cpp index ec48701..107be2b 100644 --- a/src/startReconstructions.cpp +++ b/src/startReconstructions.cpp @@ -43,13 +43,13 @@ int Recon::startReconstructions(const std::string& aDataPath, const std::string& RECON_INFO("startReconstructions with {0}.",aDataPath); RECON_INFO("data path is invalid."); - return -9; + return 1; } if(!refParser.getShotList()->isValid()) { RECON_INFO("empty water path is invalid."); - return -10; + return 2; } //init total used receiver/emitter/motorPos Matrix motorPosTotal, slList, snList, rlList, rnList; @@ -79,7 +79,7 @@ int Recon::startReconstructions(const std::string& aDataPath, const std::string& } else { - return -12; + return 3; } //getMeasurementMetaData