See tests/issue1879-same-patchinfo-uncommon.sh for an easily
reproducable example. See also my last comment to issue1879.
We should not call error but throw a UserError exception. Also
explain what the issue is and hint at how to resolve it, for
instance, amending or rebasing the offending patch in one of the
repos.