Xi’an 200 MeV proton application facility (XiPAF) upgrading project is now in the design phase. A six super periods synchrotron is the main component of this project. Using MADX program, a statical analysis of the relationship between closed-orbit distortion (COD) and different types of magnet errors was carried out. Because we do not know the exact error in the design phase, we use rms value to represent errors and CODs. The results show that COD is in direct proportion to magnet error in some cases while the others are square proportional. We regard all the cases as direct proportional since the errors are usually small and find that the error amplification factors differ a lot. These results can give us some meaningful guide in lattice design and magnet error control.