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

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
1 changed files with 6 additions and 3 deletions

View File

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