This code remove the warning but not performing the task.
Example:
I want to switch join wall and column it give warning that "One element completely inside one another". If I write the failure method it removes the warning and not switch join the elements. What changes I want to do in this code which you had given?
It should be continue the process of join. It should not unjoin the elements.