mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-06 17:11:24 +00:00
Clarify comment explaining packetlist's usage of supportsStreaming
This commit is contained in:
@@ -54,8 +54,9 @@ List.prototype.read = async function (bytes) {
|
||||
await writer.write(packet);
|
||||
} catch (e) {
|
||||
if (!config.tolerant || packetParser.supportsStreaming(parsed.tag)) {
|
||||
// The packets that support streaming also happen to be the same
|
||||
// ones we want to throw on parse errors for.
|
||||
// The packets that support streaming are the ones that contain
|
||||
// message data. Those are also the ones we want to be more strict
|
||||
// about and throw on parse errors for.
|
||||
await writer.abort(e);
|
||||
}
|
||||
util.print_debug_error(e);
|
||||
|
||||
Reference in New Issue
Block a user