Better diagnostic for undefined patch dependencies