Improve undefined patch diagnostic++