three minor error reporting fixes