Identifying errors in motion-control servoloops