block: Fix block-set-write-threshold not to use funky error class
commit6ec46ad541b20a1530cedc741d19eea9ffc39ac3
authorMarkus Armbruster <armbru@redhat.com>
Fri, 13 Mar 2015 17:51:38 +0000 (13 18:51 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 16 Mar 2015 16:07:25 +0000 (16 17:07 +0100)
tree012ab1df86f36c93cbfe493d07432e55573f8700
parenta1f688f4152e65260b94f37543521ceff8bfebe4
block: Fix block-set-write-threshold not to use funky error class

Error classes are a leftover from the days of "rich" error objects.
New code should always use ERROR_CLASS_GENERIC_ERROR.  Commit e246211
added a use of ERROR_CLASS_DEVICE_NOT_FOUND.  Replace it.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/write-threshold.c
qapi/block-core.json