adds markup to error handler