From 09d57c4e580533c959a0d0d07051f0aef9317628 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 18 Sep 2018 20:25:21 +0100 Subject: Throw a better error on bad content kind. --- src/util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util.cc') 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. -- cgit v1.2.3