logging an error is not as helpful as throwing one