Improve error message for projects