Commit 2de6c140 by James Cropcho

better error

parent f087f0e4
......@@ -13,7 +13,7 @@ print("Variety: A MongoDB Schema Analyzer")
print("Version 1.0, released 10 April 2012")
if (typeof collection === "undefined") {
throw "You have to supply a 'collection' variable, à la --eval 'var collection = \"animals\"'";
throw "You have to supply a 'collection' variable, à la --eval 'var collection = \"animals\"'. Please see https://github.com/JamesCropcho/variety for details.";
}
if (typeof limit === "undefined") { var limit = db[collection].count(); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment