raise an error if someone sends in a bad platformName (fix #2179)
Merge pull request #2248 from jlipps/master

raise an error if someone sends in a bad platformName (fix #2179)