node-snmp-native icon indicating copy to clipboard operation
node-snmp-native copied to clipboard

proposed solution to #70

Open leo-combes opened this issue 6 years ago • 3 comments

When a malformed package is found, an error message is left in the log with the sample of the package that originated it. There is no exception or cause stop the program.

Is my first PR, so I'm not sure if I are doing fine.

leo-combes avatar May 31 '18 00:05 leo-combes

please add the changes for the test.

also in other places we have just reduced the amount of logging printed by the library. i think the logger statements can be omitted. however the message in hex may be added to the error exception (not sure though).

bangert avatar May 31 '18 07:05 bangert

I have deleted the error messages in log and improved a little the error report. If you consider that is better to remove the hex message in error description, I can do. Travis keeps failing and I no understand what means "change the test". Sorry but I have not experience with github and travis. If you tell me how to do it, I can fix it.

leo-combes avatar Jun 02 '18 14:06 leo-combes

great!

the test case that is failing is checking whether or not an Exception is thrown on a parse error. you changed the code to not thrown an exception anymore, so the test fails. you should update the test case so that it no longer requires an exception to be thrown, instead checking the returned error object.

bangert avatar Jun 06 '18 11:06 bangert