Properly report failure when expanding a packfile

This fix should be pretty obvious. The original code was trying to report an error to the user, but used the wrong function. It took a while to debug this failure without a meaningful user-level error message.