Skip to content

Commit

Permalink
fix(android): better device failure handling for ScreenRecorder
Browse files Browse the repository at this point in the history
  • Loading branch information
Malinskiy committed Aug 20, 2024
1 parent ff74a7e commit 008fa9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,10 @@ class AdamAndroidDevice(
}
} catch (e: CancellationException) {
logger.warn(e) { "screenrecord start was interrupted" }
throw e
} catch (e: Exception) {
logger.error("Unable to start screenrecord", e)
throw e
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ internal class ScreenRecorder(
startRecordingTestVideo(remoteFilePath)
} catch (e: CancellationException) {
logger.warn(e) { "screenrecord start was interrupted" }
throw e
} catch (e: Exception) {
logger.error("Something went wrong while screen recording", e)
throw e
}
}

Expand Down

0 comments on commit 008fa9f

Please sign in to comment.