Skip to content

Commit 76d402e

Browse files
committed
reafactor: fix some error messages
1 parent b1f3e76 commit 76d402e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/commands/debug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class DebugPlatformCommand extends ValidatePlatformCommandBase implements
121121
}
122122

123123
if (this.$options.hmr && this.$options.debugBrk) {
124-
this.$errors.fail("Expected exactly one of the --debug-brk and --hmr options");
124+
this.$errors.fail("--debug-brk and --hmr flags cannot be combined");
125125
}
126126

127127
const minSupportedWebpackVersion = this.$options.hmr ? LiveSyncCommandHelper.MIN_SUPPORTED_WEBPACK_VERSION_WITH_HMR : null;

lib/common/mobile/ios/device/ios-device.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class IOSDevice implements Mobile.IiOSDevice {
9393
await this.$iOSSocketRequestExecutor.executeAttachRequest(this, constants.AWAIT_NOTIFICATION_TIMEOUT_SECONDS, appId);
9494
const port = await this.$iOSDebuggerPortService.getPort({ projectDir, deviceId: this.deviceInfo.identifier, appId });
9595
if (!port) {
96-
this.$errors.fail("NativeScript debugger was not able to get inspector socket port.");
96+
this.$errors.failWithoutHelp("Device socket port cannot be found.");
9797
}
9898

9999
const deviceId = this.deviceInfo.identifier;

lib/common/mobile/ios/simulator/ios-simulator-device.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class IOSSimulator implements Mobile.IiOSDevice {
3838
await this.$iOSEmulatorServices.postDarwinNotification(attachRequestMessage, this.deviceInfo.identifier);
3939
const port = await this.$iOSDebuggerPortService.getPort({ projectDir, deviceId: this.deviceInfo.identifier, appId });
4040
if (!port) {
41-
this.$errors.fail("NativeScript debugger was not able to get inspector socket port.");
41+
this.$errors.failWithoutHelp("Device socket port cannot be found.");
4242
}
4343

4444
try {

0 commit comments

Comments
 (0)