Updated main's error function a wee bit.