jarofghosts / jung

Lightweight, flexible file watching
MIT License
38 stars 3 forks source link

Directory doesn't exist. #6

Closed skinnyjames closed 9 years ago

skinnyjames commented 9 years ago

When running the command

jung -r /var/log -- echo \$JUNG_FILE changed!"

I get this error

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: !! Root dir `/var/log` does not exist !!
    at EventEmitter.Jung$start [as start] (/usr/lib/node_modules/jung/index.js:117:9)
    at Object.<anonymous> (/usr/lib/node_modules/jung/bin/jung.js:57:14)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:935:3

I've tried using sudo in case it was a permissions issues, but no go. Any ideas?

jarofghosts commented 9 years ago

Turns out it was a bug! Fixed in jung@2.0.3

skinnyjames commented 9 years ago

It's working, thanks!