adding more path to error messag when Path is not found in document