[Pkg-javascript-commits] [node-keygrip] 45/68: be consistent

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Fri Jun 27 22:13:27 UTC 2014


This is an automated email from the git hooks/post-receive script.

andrewrk-guest pushed a commit to branch master
in repository node-keygrip.

commit 63878f55acb6ee1fd8a01e2f519edca775c2dbcf
Author: Jed Schmidt <where at jed.is>
Date:   Sat Dec 21 09:16:36 2013 -0500

    be consistent
---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 5d2ea6b..2e9ae8b 100644
--- a/index.js
+++ b/index.js
@@ -34,7 +34,7 @@ function Keygrip(keys, algorithm, encoding) {
 }
 
 Keygrip.sign = Keygrip.verify = Keygrip.index = function() {
-  throw "Usage: require('keygrip')(<array-of-keys>)"
+  throw new Error("Usage: require('keygrip')(<array-of-keys>)")
 }
 
 //http://codahale.com/a-lesson-in-timing-attacks/

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-keygrip.git



More information about the Pkg-javascript-commits mailing list