mmalecki/ngrep — pull request #2 by Rylab (2012-02-22 03:15:23+00:00)
Title: Basic usage check and error display

1. Added a simple param-count check: exits with a basic USAGE line if check fails (insufficient # of args)
To test: "ngrep foo"
Old behavior: node crash w/ stack trace.
New behavior: process exits -1 after logging line "USAGE: ngrep PATTERN TARGET"
2. Added console logging of error messages w/ errno (e.g. file/dir cannot be read or doesn't exist etc)
To test: "ngrep foo /invalidPath"
Old behavior: returned string "undefined: undefined"
New behavior: displays host OS filesystem error code and message for its own "file not found" case
3. Bumped package version from 0.0.0 to 0.0.1