nodejitsu/nexpect — pull request #16 by bajtos (2014-04-11 18:08:00+00:00)
Title: Improve the error reported by a failed expectation

Modify the error reported when a line does not match the expectation
provided by `expect` or `wait`:
- use assert.AssertionError instead of plain Error
- fill actual and expected properties
- include the expectation in the error message