Currently, the API only reports Attempted modification of the item failed.
However, on Special:MergeItems you will see more detailed report like The two items cannot be merged because one of them links to the other using property P460.
This should help users figure out why they cannot merge two items using the gadget.