Skip to content

Commit

Permalink
fix: crashing while handling exceptions in some cases (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
daytime-em authored Jan 22, 2025
1 parent d44cb18 commit 940f3c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ internal class TranscoderContext private constructor(
muxer!!.stop()
fileTranscoded = true
} catch (err:Exception) {
errorDescription += err.localizedMessage
err.message?.let { errorDescription += it }
logger.e(LOG_TAG, "Failed to standardize input file ${uploadInfo.inputFile}", err)
} finally {
releaseCodecs()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ internal class UploadJobFactory private constructor(
if (!innerUploadInfo.optOut) {
metrics.reportUploadFailed(
startTime, System.currentTimeMillis(), 0,
e.localizedMessage,
e.message ?: "no error description",
sessionId,
uploadInfo
)
Expand Down

0 comments on commit 940f3c2

Please sign in to comment.