SetErrors fix

Fixed a bad reference to the SetErrors method in the MakeAPICall
function.