Better error message about multiple matching patterns