### What problem does this PR solve? 1. Refactor error message 2. Update function name ### Type of change - [x] Refactoring Signed-off-by: Jin Hai <haijin.chn@gmail.com>