Don't put \n on the end of every error() call, just do it in error() itself. Still...