add error function (macro)
add error function (macro)

alesiong/CUHKSZLib,cuhkshenzhen/CUHKSZLib,Yexiaoxing/CUHKSZLib,cuhkshenzhen/CUHKSZLib,Yexiaoxing/CUHKSZLib,alesiong/CUHKSZLib,Yexiaoxing/CUHKSZLib,cuhkshenzhen/CUHKSZLib,alesiong/CUHKSZLib