Skip to content

Commit

Permalink
Tweak NodeNotAttachedError message
Browse files Browse the repository at this point in the history
  • Loading branch information
eagletmt committed Dec 5, 2013
1 parent f2bc6e6 commit d1b9542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/capybara.js
Expand Up @@ -402,7 +402,7 @@ Capybara.UnpositionedElement.prototype.constructor = Capybara.UnpositionedElemen

Capybara.NodeNotAttachedError = function(index) {
this.name = 'Capybara.NodeNotAttachedError';
this.message = index + ' is not attached';
this.message = 'Element at ' + index + ' no longer present in the DOM';
};
Capybara.NodeNotAttachedError.prototype = new Error();
Capybara.NodeNotAttachedError.prototype.constructor = Capybara.NodeNotAttachedError;

0 comments on commit d1b9542

Please sign in to comment.