Skip to content

A self-hosted media server and file management system

fix: unsupported subtitle format error does not mention format requested

aminnausinb79b6acfa8ba
diff --git a/app/Services/Subtitles/SubtitleFormatter.php b/app/Services/Subtitles/SubtitleFormatter.php
index c8e6d5a3..f5e37c1d 100644
--- a/app/Services/Subtitles/SubtitleFormatter.php
+++ b/app/Services/Subtitles/SubtitleFormatter.php
@@ -39,7 +39,7 @@ class SubtitleFormatter {
protected function matchStrategy(string $outputFormat) {
return match ($outputFormat) {
'vtt' => new VttStrategy,
- default => throw new \InvalidArgumentException('Unsupported format'),
+ default => throw new \InvalidArgumentException("Unsupported format $outputFormat"),
};
}
}