Ethanethiol, which serves this purpose, is usually added to propane so leaks can be detected
But because gas is highly combustible, a gas leak could cause an explosion that 
... that smells like rotten eggs, is added to propane so that leaks can be detected.