Error estimates for the euler discretization of an optimal control problem with first-order state constraints