I still think the documentation should be updated to reflect that callbacks
are no longer optional. They are only optional if the call succeeds, which
you can't really know ahead of time.


On Thu, Mar 14, 2013 at 10:43 AM, Ben Noordhuis <i...@bnoordhuis.nl> wrote:

> On Thu, Mar 14, 2013 at 2:16 PM, Matt <hel...@gmail.com> wrote:
> > Discussion here: https://github.com/joyent/node/issues/5005
> >
> > If you've ever done something like:
> >
> >     fs.unlink(file); // don't care if it works or not
> >
> > This won't work in v0.10.0 any more. If you want to ignore errors you
> need
> > to pass in an empty callback. Just wanted to post a heads-up here as this
> > bit me.
>
> v0.10.1 will revert to the old behavior for now.
>
> Relying on the implicit callback to swallow errors is deprecated
> however.  v0.12 will throw the errors as exceptions.
>
> --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nodejs+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to