While neither is bad for you when eaten at proper levels, salt is much worse if eaten excessivley. Too much salt will lead to high blood pressure which can lead to heart disease, kidney disease, heart attacks, and failure of the liver. Too much sugar may lead to diabetes but that is not as life threatening of an illness as salt related illnesses can be.
參考: Grandmother died of a heart attack from high blood pressure. I have diabetes...