improve add_document error message printing
Authored by: dockes 2007-05-30
Parent(s): [fca75e]
Child(ren): [441820]