update error message when InlineAdapter is used
Merge pull request #17205 from y-yagi/patch-1

update error message when InlineAdapter is used