Improved error reporting when no main executable is given