Tweaks to console logging of errors.