Fix typo error in function name

Function name was "BuildErrorMesage" instead of "BuildErrorMessage"
Merge pull request #887 from labilbe/patch-1

Fix typo error in function name