fixed no error throw exception.

Signed-off-by: Jack <jack.wgm@gmail.com>