Added behaviour to puts errors on pagedoc