diff options
Diffstat (limited to 's/commands_public.cpp')
-rw-r--r-- | s/commands_public.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/s/commands_public.cpp b/s/commands_public.cpp index 23dd7fe..c8914ea 100644 --- a/s/commands_public.cpp +++ b/s/commands_public.cpp @@ -83,7 +83,7 @@ namespace mongo { bool ok = conn->runCommand( db , cmdObj , res , passOptions() ? options : 0 ); if ( ! ok && res["code"].numberInt() == StaleConfigInContextCode ) { conn.done(); - throw StaleConfigException("foo","command failed because of stale config"); + throw StaleConfigException( res["ns"].toString(), "command failed because of stale config" ); } result.appendElements( res ); conn.done(); |