Skip to content

Commit eca12db

Browse files
author
radeva
authored
Merge pull request #72 from NativeScript/radeva/show-plugin-build-error
fix: show error if occurs on plugin build
2 parents b40e830 + b330fb3 commit eca12db

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/scripts/prepare.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ exec('tns --version', (err, stdout, stderr) => {
1313
// execute 'tns plugin build' for {N} version > 4. This command builds .aar in platforms/android folder.
1414
if (tnsVersion >= 4) {
1515
console.log(`executing 'tns plugin build'`);
16-
exec('tns plugin build');
16+
exec('tns plugin build', (err, stdout, stderr) => {
17+
if (err) {
18+
// node couldn't execute the command
19+
console.log(`${err}`);
20+
return;
21+
}
22+
});
1723
}
18-
});
24+
});

0 commit comments

Comments
 (0)