REST: For enumerate, return the error in JSON
The only way enumerate can fail is if the GetSubTree call fails,
and that will only happen if the path isn't a valid D-Bus object.
In that case, return the standard REST error JSON response for
org.freedesktop.DBus.Error.FileNotFound.
Change-Id: Ie68761c3ee67aa337761567b8a76bd9c9ebddc19
Signed-off-by:
Matt Spinler <spinler@us.ibm.com>
Loading
Please register or sign in to comment