improved retval checker
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit

This commit is contained in:
Robin Müller 2022-09-30 15:07:20 +02:00
parent 470b236008
commit a562d7e4ca
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -385,10 +385,13 @@ void buildTargetPtSequence(Subsystem* ss, ModeListEntry& eh) {
void checkInsert(ReturnValue_t result, const char* ctx) { void checkInsert(ReturnValue_t result, const char* ctx) {
if (result != returnvalue::OK) { if (result != returnvalue::OK) {
sif::warning << "satsystem::checkInsert: Insertion failed at " << ctx;
if(result == mapdefs::KEY_ALREADY_EXISTS) { if(result == mapdefs::KEY_ALREADY_EXISTS) {
sif::warning << "satsystem::checkInsert: Insertion failed at " << ctx << ", key already exists" << sif::warning << ": Key already exists" << std::endl;
ctx << std::endl; } else if(result == mapdefs::MAP_FULL) {
sif::warning << ": Map full" << std::endl;
} else {
sif::warning << std::endl;
} }
sif::warning << "satsystem::checkInsert: Insertion failed at " << ctx << std::endl;
} }
} }