Skip to content

Commit

Permalink
Improve ttml error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mantas-done committed Sep 1, 2023
1 parent 0785a71 commit 8ad6868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Code/Converters/TtmlConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public function internalFormatToFileContent(array $internal_format)
public static function ttmlTimeToInternal($ttml_time, $frame_rate)
{
if (trim($ttml_time) === '') {
throw new \Exception("empty time");
throw new UserException("Timestamps were not found in this file (TtmlConverter)");
}

if (substr($ttml_time, -1) === 't') { // if last symbol is "t"
Expand Down

0 comments on commit 8ad6868

Please sign in to comment.