Skip to content

Commit

Permalink
Return nicer error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mantas-done committed Aug 12, 2023
1 parent 43e8416 commit 21f1e8e
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 @@ -37,7 +37,7 @@ public function fileContentToInternalFormat($file_content)
$divElements = $dom->getElementsByTagName('body');
}
if ($divElements->count() < 1) {
throw new \Exception('no div');
return [];
}

$internal_format = [];
Expand Down

0 comments on commit 21f1e8e

Please sign in to comment.