feat: Add exit code for error

This commit is contained in:
kradchen
2024-09-11 09:19:03 +08:00
parent 9b578c4243
commit a8356cd258

View File

@@ -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