fs: improve error message descriptions
authorSakthipriyan Vairamani <thechargingvolcano@gmail.com>
Tue, 2 Jun 2015 15:13:46 +0000 (20:43 +0530)
committerTrevor Norris <trev.norris@gmail.com>
Wed, 10 Jun 2015 22:51:46 +0000 (16:51 -0600)
commit09f2a67bd82faf67229dd7e9a9c45e3f1b3f6c17
treed5b4c8aefc438ff43cf700a047fe060707a3f455
parentcf5020fc025cba38668b45949a29b5c480e94e3f
fs: improve error message descriptions

1. Change "Bad arguments" error messages to a more helpful message
"options should either be an object or a string".

2. Make braces consistent.

3. Return meaningful error message from fs_event_wrap's
FSEvent's Start function.

PR-URL: https://github.com/nodejs/io.js/pull/1870
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
lib/fs.js
src/fs_event_wrap.cc