add err info for reverse code formatting