Polish framework error message part 5 (#26204)
Polish framework error message part 5 (#26204)

* polish framework error msg part 5

* revert enforce change

* refine error type

* trigger ci check

* polish details by review comment
PaddlePaddle/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,luotao1/Paddle,luotao1/Paddle,luotao1/Paddle