[fixed] exit immediately if a compile error occurs