bug 2885: attempting to add library with existing code now gives error message