Fix undefined symbol in API error message

--HG--
extra : rebase_source : 975eeb7cd4f7dd7b7ab639858b7fb9a2022f7067