Removed the extra check for err being nil when displaying an error. This is no longer needed.