Skip to content

Instantly share code, notes, and snippets.

@garrettwilkin
Created December 20, 2013 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garrettwilkin/8061171 to your computer and use it in GitHub Desktop.
Save garrettwilkin/8061171 to your computer and use it in GitHub Desktop.
Exceptions via assert.equal
$ node
> var assert = require('assert');
undefined
> var i = 10;
undefined
> var j = 11;
undefined
> assert.equal(i,j)
AssertionError: 10 == 11
at repl:1:9
at REPLServer.self.eval (repl.js:110:21)
at Interface.<anonymous> (repl.js:239:12)
at Interface.EventEmitter.emit (events.js:95:17)
at Interface._onLine (readline.js:202:10)
at Interface._line (readline.js:531:8)
at Interface._ttyWrite (readline.js:760:14)
at ReadStream.onkeypress (readline.js:99:10)
at ReadStream.EventEmitter.emit (events.js:98:17)
at emitKey (readline.js:1095:12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment