Make error message unique

Summary: We're currently getting errors for every duplicate key and can't easily unify them, so we're adding the additional information to a warning instead.

Reviewed By: mweststrate

Differential Revision: D30337821

fbshipit-source-id: db9dc44d7d3424de169bed9b4447b482e411eb19
This commit is contained in:
Pascal Hartig
2021-08-16 05:31:37 -07:00
committed by Facebook GitHub Bot
parent e880059167
commit 797007f367
4 changed files with 9 additions and 3 deletions

View File

@@ -12,7 +12,6 @@ import child_process, {ChildProcess} from 'child_process';
import BaseDevice from '../BaseDevice';
import JSONStream from 'JSONStream';
import {Transform} from 'stream';
import {exec} from 'promisify-child-process';
import {ERR_PHYSICAL_DEVICE_LOGS_WITHOUT_IDB, IOSBridge} from './IOSBridge';
import split2 from 'split2';

View File

@@ -112,6 +112,7 @@ export function getAllPromisesForQueryingDevices(
store.getState().settingsState.idbPath,
store.getState().settingsState.enablePhysicalIOS,
).then((devices: IOSDeviceParams[]) => {
console.log('Active iOS devices:', devices);
processDevices(store, logger, iosBridge, devices, 'physical');
}),
];