improved error report

Signed-off-by: Wouter Vroege <wouter@woutervroege.nl>