Skip to content

Only return EOF when we've read no bytes #62

Closed
@Stebalien

Description

This was partially addressed in #61 and #60.

Currently, both ScanForLinks and Unmarshal will end up returning EOF instead of ErrUnexpectedEOF in some cases where they've read some data but not all the data. We likely need top-level "if EOF, replace with ErrUnexpectedEOF" guards.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions