fix issue 10688 - Misleading error message when attempting a "private
override"
Merge pull request #2376 from hpohl/10688

[enh] fix issue 10688 - Misleading error message when attempting a "private override"