lnde / ifpstat

CLI tool that reports network interface statistics based on pcap-filter(7).
3 stars 0 forks source link

Completion of error handling #2

Open elfring opened 1 year ago

elfring commented 1 year ago

Would you like to add more error handling for return values from functions like the following?

lnde commented 1 year ago

@elfring Now checking for fflush errors but I don't see the point in handling return values for fprintf to stdout.

elfring commented 1 year ago

I suggest to avoid ignorance of return values a bit more. How do you think about to care also if a file output really succeeded? :thinking:

elfring commented 1 year ago

:thoughtballoon: Would you become interested to apply aspect-oriented software development? How do you think about to encapsulate error detection and corresponding exception handling as [a reusable aspect](https://en.wikipedia.org/wiki/Aspect%28computer_programming%29 "Documentation") in your software? :thinking: