Modified error printing for better appearance