Make error logging more readable and dump more info.