Processing project started in CMD - error handling

maybe good way, but when is the some syntax error in the cond, it wont to compile it …