use error value.

Signed-off-by: Liu.Bo <bliu_923@hotmail.com>