Improved error message

actually, the XML name is `target-document` which is why I used the space ... I put `targetDocument` in my mapping file and was debugging that for half an hour before realising the errpr.