Throw error in indexer in case of error