Improve error handling if platform not supported.