Change error type in nth.
Merge branch 'mlucy_1922' into next