Add an error check after calling doexpr2().