From e5ffd24ccaf45608a5d961232281f22d07e4b4e0 Mon Sep 17 00:00:00 2001 From: Andrey Lunyov Date: Tue, 7 Jun 2022 15:29:29 -0700 Subject: [PATCH] Include platform and arch in the compiler error message Reviewed By: voideanvalue Differential Revision: D36975241 fbshipit-source-id: 5ac6b9e8d072f940cb6c403299f4f7b79454a009 --- packages/relay-compiler/cli.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/relay-compiler/cli.js b/packages/relay-compiler/cli.js index 2c510d00b7540..6dc6bd2b3f01e 100755 --- a/packages/relay-compiler/cli.js +++ b/packages/relay-compiler/cli.js @@ -19,5 +19,7 @@ var input = process.argv.slice(2); if (bin !== null) { spawn(bin, input, {stdio: 'inherit'}).on('exit', process.exit); } else { - throw new Error('Platform not supported.'); + throw new Error( + `Platform "${process.platform} (${process.arch})" not supported.`, + ); }