From 8da621f8e9e291b71e102d2e2ec8f1c266135e49 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Tue, 9 Oct 2018 08:26:24 -0700 Subject: [PATCH] Exit with error code on yarn-install failure (#292) Summary: If installation fails, we should exit with an error code and not just a message. This should help narrow down the CI failures, too. Pull Request resolved: https://github.com/facebook/flipper/pull/292 Reviewed By: danielbuechele Differential Revision: D10255759 Pulled By: passy fbshipit-source-id: a6b033deadf11069e6c5665870a811ae2d0ec5ef --- scripts/yarn-install.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/yarn-install.js b/scripts/yarn-install.js index 561c6dc92..62b43e1fd 100644 --- a/scripts/yarn-install.js +++ b/scripts/yarn-install.js @@ -54,4 +54,5 @@ Promise.all( .catch(err => { console.error('❌ Installing plugin dependencies failed.'); console.error(err); + process.exit(1); });