Make two error messages more useful