I don't much like checking against the error message - can different platforms change it? can it be affected by localisation?