Skip to content

Commit

Permalink
Include platform and arch in the compiler error message
Browse files Browse the repository at this point in the history
Reviewed By: voideanvalue

Differential Revision: D36975241

fbshipit-source-id: 5ac6b9e8d072f940cb6c403299f4f7b79454a009
  • Loading branch information
alunyov authored and facebook-github-bot committed Jun 7, 2022
1 parent eb5b319 commit e5ffd24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/relay-compiler/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`,
);
}

0 comments on commit e5ffd24

Please sign in to comment.