Added error reporting for using invalid platforms.