add assert fail to onError

RB=390458
R=kjin,si-dev,axu
A=kjin,axu