throw errors from index

Add the ability to throw errors on an index failure.