Fixing better error message on missing docs