Put file association error message displaying code outside of platform specific code.