Sets the proper warning message for duplicate property detected