revert removal of error() util
revert removal of error() util

Tadeirro/component,componentjs/component,ebulay/component,vacjaliu/component,yinhe007/component,cnbin/component,fengwei2014/component,NandoKstroNet/component