diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-02-21 00:38:47 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-02-21 00:38:47 -0500 |
commit | 421a6fbd20c96f28db154ac10354523aedd610c5 (patch) | |
tree | ee3f3a83e49ca0e75936a97892086ee6fe80a269 /src/mongo/util/net/hostandport.h | |
parent | e5f47c8131661893039a032ee25806f2a5307776 (diff) | |
download | mongo-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.h | 2 |
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, ':'); |