Improved error logging for duplicate classes.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>