Improved error message and project parsing