fix cosmetic nit in error handling