Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup: refine ifError() text
It throws if `value` is truthy.
  • Loading branch information
Trott committed Sep 18, 2015
commit 7c4a8f367ab1a567891b980745db80ac086e219c
4 changes: 2 additions & 2 deletions doc/api/assert.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ Expects `block` not to throw an error. See `assert.throws()` for details.

## assert.ifError(value)

Tests if value is an `Error` and, if so, throws it. This is useful when
testing the `error` argument in callbacks.
Throws `value` if `value` is truthy. This is useful when testing the `error`
argument in callbacks.