[API] Fix error message

Change-Id: I3c9fffb86fddb2eac61d0d125e1f1e328bafb446