summaryrefslogtreecommitdiff
path: root/src/lib/exceptions.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-06-20 10:30:36 +0100
committerCarl Hetherington <cth@carlh.net>2014-06-20 10:30:36 +0100
commit2cdecbe2b56233b009f6edfa13033c6ec9d198bf (patch)
treeb6797e9314b7d6575898cc8cfad2116e46ce3a31 /src/lib/exceptions.cc
parent0444ddab72c195d91e422ac659594e6d81fbf938 (diff)
Fix small .srt parsing bug; add a test.
Diffstat (limited to 'src/lib/exceptions.cc')
-rw-r--r--src/lib/exceptions.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/exceptions.cc b/src/lib/exceptions.cc
index 4d9ccc95c..f34cebbfe 100644
--- a/src/lib/exceptions.cc
+++ b/src/lib/exceptions.cc
@@ -63,7 +63,7 @@ PixelFormatError::PixelFormatError (string o, AVPixelFormat f)
}
SubRipError::SubRipError (string saw, string expecting, boost::filesystem::path f)
- : FileError (String::compose (_("Error in SubRip file: saw %1 while expecting %2"), saw, expecting), f)
+ : FileError (String::compose (_("Error in SubRip file: saw %1 while expecting %2"), saw.empty() ? "[nothing]" : saw, expecting), f)
{
-
+
}