Fix diagnostic when given fictional path.