From 11c1c39bdc4a8c738025c725e9e2463c908dc0fe Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Wed, 11 Aug 2021 11:02:10 -0700 Subject: [PATCH] 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 --- desktop/app/src/devices/IOSDevice.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop/app/src/devices/IOSDevice.tsx b/desktop/app/src/devices/IOSDevice.tsx index 1923d8762..f3fcc2bf4 100644 --- a/desktop/app/src/devices/IOSDevice.tsx +++ b/desktop/app/src/devices/IOSDevice.tsx @@ -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;