fix wrong error message when move indices are invalid

(0) -100 -30 -10 -1 +1 +10 tip

mercurial