ENH: Better error reporting