[2143125] Merge from upstream "Add error messages on wildcards and accept a 'final' wildcard #1463" https://bugs.launchpad.net/bugs/2143125