How to display exceptions on a page in Magento 2

- Magento 2

Magento 2 Development

The process is almost similar to Magento 1, but you only have to rename local.xml.sample to local.xml within your pub/errors directory.

'

More tips from Magento 2 Developer’s Cookbook

Source (Magento Stackexchange Question) (Krzysztof Donarski)

'