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:
parent
4cff5d708e
commit
db1f6f473b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user