get-it icon indicating copy to clipboard operation
get-it copied to clipboard

Unmatchable text: apply just returns nil?

Open mikebaldry opened this issue 7 years ago • 3 comments

Hi there,

When trying to match against invalid data, apply just seems to return nil, is there some way to generate a nicer result, perhaps where it was unable to match the next byte, at what position and what it expected and what it got?

It would be good if apply returned a standard {:ok, capture_result} or {:error, something_else}

Cheers.

Great library by the way :)

mikebaldry avatar Feb 19 '17 21:02 mikebaldry