From ba0d345e3a986ea07398c1a9abe8d5263a870318 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 6 Feb 2024 11:32:26 +0100 Subject: Throw a specific exception when no WEBVTT header is found. --- src/web_vtt_reader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/web_vtt_reader.cc') diff --git a/src/web_vtt_reader.cc b/src/web_vtt_reader.cc index cd6844d..4618466 100644 --- a/src/web_vtt_reader.cc +++ b/src/web_vtt_reader.cc @@ -86,7 +86,7 @@ WebVTTReader::read(std::function ()> get_line) switch (state) { case State::HEADER: if (!boost::starts_with(*line, "WEBVTT")) { - throw WebVTTError("No WEBVTT header found"); + throw WebVTTHeaderError(); } state = State::DATA; break; -- cgit v1.2.3