- 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:
parent
9ff7502bb4
commit
cb4f0e878d
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue