print errors a bit better