modified dipydoc.cpp : added error messages