[3.5.x] Don't use GetErrorStrFromCode(), which is not defined in 3.5.x.