summaryrefslogtreecommitdiff
path: root/s/config.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-12-28 17:06:07 -0500
committerEliot Horowitz <eliot@10gen.com>2009-12-28 17:06:07 -0500
commitfa8961c3e8804a2fd606160d7649e973e906d0b4 (patch)
tree7b05dab00035f95e55fb131f38a15a06e7281a16 /s/config.h
parenta3a0bc64f9082d712d8a0789811257ad45a6cb0b (diff)
downloadmongo-fa8961c3e8804a2fd606160d7649e973e906d0b4.tar.gz
Exception classess need codes too SERVER-112
Diffstat (limited to 's/config.h')
-rw-r--r--s/config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/s/config.h b/s/config.h
index 14d76b71067..16aa67aaddc 100644
--- a/s/config.h
+++ b/s/config.h
@@ -82,7 +82,7 @@ namespace mongo {
string getPrimary(){
if ( _primary.size() == 0 )
- throw UserException( (string)"no primary shard configured for db: " + _name );
+ throw UserException( 8041 , (string)"no primary shard configured for db: " + _name );
return _primary;
}