Add pack file reading.

- Fix a broken error message.