Better error messages for some possible failures