Skip to content

Commit 29b0287

Browse files
authored
Merge pull request #673 from tidev/fix-invalid-platform
2 parents ad5354a + b80dd9c commit 29b0287

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
7.1.3 (8/1/2024)
2+
-------------------
3+
* fix: Invalid `--platform` would cause crash because the platform
4+
validation was being bypassed
15

26
7.1.2 (7/31/2024)
37
-------------------

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "titanium",
3-
"version": "7.1.2",
3+
"version": "7.1.3",
44
"author": "TiDev, Inc. <[email protected]>",
55
"description": "Command line interface for building Titanium SDK apps",
66
"type": "module",

src/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ export class CLI {
656656
.join('\n')
657657
}`
658658
});
659-
} else if (!platformOption.skipValueCheck && !platformOption.values.includes(this.argv.platform)) {
659+
} else if (!platformOption.values.includes(this.argv.platform)) {
660660
throw new TiError(`Invalid platform "${this.argv.$originalPlatform || this.argv.platform}"`, {
661661
code: 'INVALID_PLATFORM'
662662
});
@@ -670,7 +670,7 @@ export class CLI {
670670
this.logger.banner();
671671

672672
if (e.code === 'INVALID_PLATFORM') {
673-
this.logger.error(e.message);
673+
this.logger.error(`${e.message}\n`);
674674
}
675675

676676
this.argv.platform = await prompt({

0 commit comments

Comments
 (0)