Instead of just ``result``, perhaps ``GetErrorStrFromCode(result)``?