corrected doctor error reporting
Merge pull request #1944 from Jonahss/master

corrected doctor error reporting