PackageWriterImpl: improve error output.