Fixed logging of error messages. (response.error.message does not exist)

tsia