Skip to content

Commit

Permalink
fix(android): better device failure handling for ScreenRecorder (#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
Malinskiy authored Aug 22, 2024
1 parent ff74a7e commit 861ce58
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 861ce58

Please sign in to comment.