Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 24, 2011, 2:57:53 PM (13 years ago)
Author:
dafrick
Message:

Improving output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/pickup/PickupIdentifier.cc

    r8858 r8864  
    7575        assert(this->pickup_);
    7676
    77         // If the classIdentifiers are not the same (meaning the PickupIdentifiers identify different classes), the obviously the two Pickupables identified by the PickupIdentifiers cannot be the same. An ordering is established through the alphabetical ordering of the respective classnames.
     77        // If the classIdentifiers are not the same (meaning the PickupIdentifiers identify different classes), then obviously the two Pickupables identified by the PickupIdentifiers cannot be the same. An ordering is established through the alphabetical ordering of the respective classnames.
    7878        if(!identifier->pickup_->getIdentifier()->isExactlyA(this->pickup_->getIdentifier()))
    7979            return this->pickup_->getIdentifier()->getName().compare(identifier->pickup_->getIdentifier()->getName());
     
    8383        if(!(this->parameters_.size() == identifier->parameters_.size()))
    8484        {
    85             orxout(internal_error, context::pickups) << "Something went wrong in PickupIdentifier!" << endl;
     85            orxout(internal_error, context::pickups) << "Two PickupIdentifiers of the same Class have a different number of parameters. " << this->parameters_.size() << " vs. " << identifier->parameters_.size() << ". This indicates a bug in " << this->pickup_->getIdentifier()->getName() << "." << endl;
    8686            return this->parameters_.size()-identifier->parameters_.size();
    8787        }
     
    9393            if(identifier->parameters_.find(it->first) == identifier->parameters_.end())
    9494            {
    95                 orxout(internal_error, context::pickups) << "Something went wrong in PickupIdentifier!" << endl;
     95                orxout(internal_error, context::pickups) << this->pickup_->getIdentifier()->getName() <<  " Something went wrong in PickupIdentifier!" << endl;
    9696                return -1;
    9797            }
Note: See TracChangeset for help on using the changeset viewer.