`error` was never being set of checked here.