Finally getting some decent error reporting.