- move the supported platform code into a constant - specify which platform is not supported in the error message