Improve error reporting

Signed-off-by: Stefan Marr <git@stefan-marr.de>