adding ability to customize error details