slightly improved error reporting - Issue #8