proper error checking
Merge branch 'pythia8176' of github.com:HEP-KBFI/genSun into pythia8176