Set exit code to 1 if script failed
Summary: Fixed scripts to return exit code 1 in case of error. Reviewed By: passy Differential Revision: D22357664 fbshipit-source-id: 1e067fe507e8f33cf21e70f3d15fd97175b9544e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
70b87b70c7
commit
a8a16e24b3
@@ -9,8 +9,11 @@
|
||||
|
||||
import {resolvePluginDir} from './workspaces';
|
||||
|
||||
(async function () {
|
||||
const pluginName = process.argv[2];
|
||||
const pluginDir = await resolvePluginDir(pluginName);
|
||||
console.log(pluginDir);
|
||||
})();
|
||||
resolvePluginDir(process.argv[2])
|
||||
.then((dir) => {
|
||||
console.log(dir);
|
||||
})
|
||||
.catch((err: any) => {
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user