summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-09-18 20:25:21 +0100
committerCarl Hetherington <cth@carlh.net>2018-09-18 20:25:21 +0100
commit09d57c4e580533c959a0d0d07051f0aef9317628 (patch)
tree989ec43fe87fc8e3c4a13c0cf754a8a5a349c757 /src/util.cc
parentee05b1c06aa5305b5c97dc74dc8f253bab99a2ac (diff)
Throw a better error on bad content kind.
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc
index 3d90ccaa..ac97af6e 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -214,7 +214,7 @@ dcp::content_kind_from_string (string kind)
return ADVERTISEMENT;
}
- DCP_ASSERT (false);
+ throw BadContentKindError (kind);
}
/** @param s A string.