Improve screen recording logging

Summary:
Error is handled, doesn't need a task. Also, prefix is wrong here
as it's used.

Reviewed By: mweststrate

Differential Revision: D30247416

fbshipit-source-id: 049490cb7e45b7ce6f433bf7366eb94893947625
This commit is contained in:
Pascal Hartig
2021-08-11 11:02:10 -07:00
committed by Facebook GitHub Bot
parent 8223051905
commit 11c1c39bdc

View File

@@ -249,9 +249,9 @@ export default class IOSDevice extends BaseDevice {
this.recordingLocation = undefined;
return recordingLocation!;
})
.catch((_e) => {
.catch((e) => {
this.recordingLocation = undefined;
console.error(_e);
console.warn('Failed to terminate iOS screen recording:', e);
return null;
});
return output;