Some better error reporting