diff options
author | Dwight <dwight@10gen.com> | 2012-02-07 11:06:27 -0500 |
---|---|---|
committer | Dwight <dwight@10gen.com> | 2012-02-07 11:06:27 -0500 |
commit | 7942118d328ea0e49d6abb8a77c0a34f1338b5aa (patch) | |
tree | 4d348c8b9ff1acddf3538f37aab05f5a7f611750 /src/mongo/client/examples/mongoperf.cpp | |
parent | 26eccbf5890128bffbc6f758ab89083e5cb58d96 (diff) | |
download | mongo-7942118d328ea0e49d6abb8a77c0a34f1338b5aa.tar.gz |
mongoperf tweak
Diffstat (limited to 'src/mongo/client/examples/mongoperf.cpp')
-rw-r--r-- | src/mongo/client/examples/mongoperf.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/client/examples/mongoperf.cpp b/src/mongo/client/examples/mongoperf.cpp index 2369de64ec2..f89f769d0cf 100644 --- a/src/mongo/client/examples/mongoperf.cpp +++ b/src/mongo/client/examples/mongoperf.cpp @@ -225,16 +225,15 @@ cout << } string s = input; - str::stripTrailing(s, "\n\r\0x1a"); + str::stripTrailing(s, " \n\r\0x1a"); try { options = fromjson(s); } catch(...) { - cout << s << endl; - cout << "couldn't parse json options" << endl; + cout << "couldn't parse json options. input was:\n|" << s << "|" << endl; return -1; } - cout << "options:\n" << options.toString() << endl; + cout << "parsed options:\n" << options.toString() << endl; go(); #if 0 |