summaryrefslogtreecommitdiff
path: root/src/mongo/util/net/hostandport.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-02-21 00:38:47 -0500
committerEliot Horowitz <eliot@10gen.com>2012-02-21 00:38:47 -0500
commit421a6fbd20c96f28db154ac10354523aedd610c5 (patch)
treeee3f3a83e49ca0e75936a97892086ee6fe80a269 /src/mongo/util/net/hostandport.h
parente5f47c8131661893039a032ee25806f2a5307776 (diff)
downloadmongo-421a6fbd20c96f28db154ac10354523aedd610c5.tar.gz
better HostAndPort assertion error message
Diffstat (limited to 'src/mongo/util/net/hostandport.h')
-rw-r--r--src/mongo/util/net/hostandport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/net/hostandport.h b/src/mongo/util/net/hostandport.h
index 3f4a64b79a9..d05f13eb79c 100644
--- a/src/mongo/util/net/hostandport.h
+++ b/src/mongo/util/net/hostandport.h
@@ -207,7 +207,7 @@ namespace mongo {
}
inline void HostAndPort::init(const char *p) {
- uassert(13110, "HostAndPort: bad host:port config string", *p);
+ massert(13110, "HostAndPort: host is empty", *p);
assert( *p != '#' );
assert( _dynName.empty() );
const char *colon = strrchr(p, ':');