error handling with wrong categories

Signed-off-by: aLekSer <gdocse@gmail.com>