add document metadata to pillowtop errors