Improve error reporting for development