Include error name in the exception

Signed-off-by: Michal Čihař <michal@cihar.com>