Accidentally committed alert boxes for debugging. But 2 fixes were committed to (use of error instead of err)