mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-07 19:34:56 +00:00
nitpicker: improve diagnostic of policy configuration
This patch adds diagnostic messages during the label-policy application, if no policy for the session label was found or if the domain configured in the policy node does not exist.
This commit is contained in:
parent
23f9761297
commit
2b321b9ce8
@ -219,7 +219,11 @@ class Session : public Session_list::Element
|
||||
Domain_name name(buf);
|
||||
_domain = domain_registry.lookup(name);
|
||||
|
||||
} catch (...) { }
|
||||
if (!_domain)
|
||||
PERR("policy for label \"%s\" specifies nonexistent domain \"%s\"",
|
||||
_label.string(), name.string());
|
||||
|
||||
} catch (...) { PERR("no policy matching label \"%s\"", _label.string()); }
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user