builtin/pack-objects.c: use die_errno() and warning_errno()