Merge pull request #13256 from pierreeurope/fix/ttml-postprocessing-error-reporting
Fix subtitle post-processing error losing original exception
This commit is contained in:
commit
01e77e2e26
@ -29,9 +29,12 @@ class TtmlConverter extends Postprocessing {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
writer.build(sources[0]);
|
writer.build(sources[0]);
|
||||||
|
} catch (IOException err) {
|
||||||
|
Log.e(TAG, "subtitle conversion failed due to I/O error", err);
|
||||||
|
throw err;
|
||||||
} catch (Exception err) {
|
} catch (Exception err) {
|
||||||
Log.e(TAG, "subtitle parse failed", err);
|
Log.e(TAG, "subtitle conversion failed", err);
|
||||||
return err instanceof IOException ? 1 : 8;
|
throw new IOException("TTML to SRT conversion failed", err);
|
||||||
}
|
}
|
||||||
|
|
||||||
return OK_RESULT;
|
return OK_RESULT;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user