Better error reporting for compile command