Linear and nonlinear response of a rotating tokamak plasma to a resonant error-field