Unable to select batch error

Hope on V12 this error comes with the item and batch number so user (admin) can know which item to fix otherwise I’d the had Access to server has to check web.log for the error…

File “/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/sales_invoice/sales_invoice.py”, line 91, in validate
set_batch_nos(self, ‘warehouse’, True)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/batch/batch.py”, line 118, in set_batch_nos
d.batch_no = get_batch_no(d.item_code, warehouse, qty, throw)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/batch/batch.py”, line 161, in get_batch_no
raise UnableToSelectBatchError