Better error reporting. Fix a dist error.