1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-25 02:50:08 +03:00

Bug #1535: Report a pretty error when a quota ID is not a valid one

This commit is contained in:
Carlos Martín 2012-11-08 17:41:44 +01:00
parent 4cff5d708e
commit db1f6f473b

View File

@ -163,6 +163,11 @@ bool Quota::check_quota(const string& qid,
if ( get_quota(qid, &q) == -1 )
{
ostringstream oss;
oss << "String '" << qid << "' is not a valid ID";
error = oss.str();
return false;
}