Skip to content

Commit

Permalink
(minor) standardized error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed May 23, 2010
1 parent a214eb8 commit 70cf79e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vows.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function addVow(/* description & callback */) {
} else if (args[0].callback && args[0].context) {
vow = args[0];
} else {
throw new(Error)("wrong argument type for addVow()");
throw new(Error)("wrong argument type for addVow().");
}

return this.addListener("success", function () {
Expand Down Expand Up @@ -221,7 +221,7 @@ function addVows(tests) {

if (typeof(tests) === 'object') {
if ('topic' in tests) {
throw new(Error)("Missing top-level context.");
throw new(Error)("missing top-level context.");
}
// Count the number of vows/promises expected to fire,
// so we know when the tests are over.
Expand Down

0 comments on commit 70cf79e

Please sign in to comment.