Enhanced support for errors