- Add printout on error. TODO: Still fails misteriously on malformed

policies


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@847 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-08-12 17:32:43 +00:00
parent 9ff7502bb4
commit cb4f0e878d
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@
#include <algorithm> #include <algorithm>
#include <cassert> #include <cassert>
#include <iostream>
using std::vector; using std::vector;
using std::map; using std::map;
@ -123,6 +124,7 @@ CPUPoliciesGatekeeper::activate_policy(History *history, CPUPolicy* policy)
} }
catch(const CPUPolicyException& e) catch(const CPUPolicyException& e)
{ {
std::cerr << e.what() << std::endl;
// See the comment above to understand why we do this // See the comment above to understand why we do this
// in this way // in this way
_active_policies.erase(_active_policies.find(history)); _active_policies.erase(_active_policies.find(history));