fix(packer) pack: add error handler