Revert "Refactor error_for(row)"

This reverts commit 07cef1d8c98dd11f0aad10fafd32af78b14185c4.