maddingue / Net-Pcap

Net::Pcap - Interface to pcap(3) LBL packet capture library
3 stars 11 forks source link

Allow error message to be a suffix #9

Closed kentfredric closed 6 years ago

kentfredric commented 6 years ago

Previously, the error message emitted by the native calls was of the form:

'syntax error'

However, more recently the error message takes the form:

'syntax error in filter expression: syntax error'

This patch pretends the part before the ":" is functionally equivalent to a line start, for the purposes of testing.

Closes: https://github.com/maddingue/Net-Pcap/issues/8

maddingue commented 6 years ago

Thanks, applied.