The effects of magnetic field errors in a bumpy torus confinement devices are studied. The analysis relies on large-aspect-ratio and near-axis approximations, but includes toroidal effects and allows for any shape of the magnetic field bumps. The main features of the present results agree with those of previous numerical studies. However, the analysis of field line trajectories can be made surprisingly explicit and reveals some features which have not been anticipated.