Skip to content

Commit 70cf79e

Browse files
author
cloudhead
committed
(minor) standardized error messages
1 parent a214eb8 commit 70cf79e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/vows.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function addVow(/* description & callback */) {
128128
} else if (args[0].callback && args[0].context) {
129129
vow = args[0];
130130
} else {
131-
throw new(Error)("wrong argument type for addVow()");
131+
throw new(Error)("wrong argument type for addVow().");
132132
}
133133

134134
return this.addListener("success", function () {
@@ -221,7 +221,7 @@ function addVows(tests) {
221221

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

0 commit comments

Comments
 (0)