diff --git a/src/dispatcher/application.js b/src/dispatcher/application.js index a506c0014..98d4e9055 100644 --- a/src/dispatcher/application.js +++ b/src/dispatcher/application.js @@ -70,6 +70,12 @@ export default (store: Store, logger: Logger) => { type: 'SET_SERVER_PORTS', payload: portOverrides, }); + } else { + console.error( + `Ignoring malformed FLIPPER_PORTS env variable: + "${process.env.FLIPPER_PORTS || ''}". + Example expected format: "1111,2222".`, + ); } } }; diff --git a/src/utils/environmentVariables.js b/src/utils/environmentVariables.js index cd16c7be6..1a7267b78 100644 --- a/src/utils/environmentVariables.js +++ b/src/utils/environmentVariables.js @@ -21,9 +21,5 @@ export function parseFlipperPorts( insecure: ports[0], secure: ports[1], }; - } else { - console.error( - `Ignoring malformed FLIPPER_PORTS env variable: "${envVar}". Example expected format: "1111,2222".`, - ); } }