[Pkg-javascript-commits] [node-leveldown] 321/492: correct error messages

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Sun Jul 6 17:14:13 UTC 2014


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

andrewrk-guest pushed a commit to annotated tag rocksdb-0.10.1
in repository node-leveldown.

commit f63eff96eb0eaba6f3dbd401a373e8471872f709
Author: Rod Vagg <rod at vagg.org>
Date:   Fri May 3 09:12:05 2013 +1000

    correct error messages
---
 src/leveldown.cc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/leveldown.cc b/src/leveldown.cc
index 807b000..3d9887f 100644
--- a/src/leveldown.cc
+++ b/src/leveldown.cc
@@ -21,11 +21,11 @@ v8::Handle<v8::Value> DestroyDB (const v8::Arguments& args) {
   }
 
   if (!args[0]->IsString()) {
-    LD_THROW_RETURN(constructor requires a location string argument)
+    LD_THROW_RETURN(destroy() requires a location string argument)
   }
 
   if (!args[1]->IsFunction()) {
-    LD_THROW_RETURN(constructor requires a callback function argument)
+    LD_THROW_RETURN(destroy() requires a callback function argument)
   }
 
   char* location = FromV8String(args[0]);
@@ -53,11 +53,11 @@ v8::Handle<v8::Value> RepairDB (const v8::Arguments& args) {
   }
 
   if (!args[0]->IsString()) {
-    LD_THROW_RETURN(constructor requires a location string argument)
+    LD_THROW_RETURN(repair() requires a location string argument)
   }
 
   if (!args[1]->IsFunction()) {
-    LD_THROW_RETURN(constructor requires a callback function argument)
+    LD_THROW_RETURN(repair() requires a callback function argument)
   }
 
   char* location = FromV8String(args[0]);

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



More information about the Pkg-javascript-commits mailing list