From 70cf79ec8f2f7074ebf61e50b5008d3fa3d80eb5 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Sat, 22 May 2010 23:13:24 -0400 Subject: [PATCH] (minor) standardized error messages --- lib/vows.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vows.js b/lib/vows.js index 5bf7d1c..19ed4c1 100644 --- a/lib/vows.js +++ b/lib/vows.js @@ -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 () { @@ -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.