Skip to content

Commit ca12fe4

Browse files
refactor(cli): basic error messages improvments
Co-authored-by: danielpeintner <daniel.peintner@gmail.com>
1 parent e5ddb9b commit ca12fe4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/binding-mqtt/src/mqtt-broker-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ export default class MqttBrokerServer implements ProtocolServer {
446446
private async startBroker() {
447447
return new Promise<void>((resolve, reject) => {
448448
if (this.brokerURI == null) {
449-
throw new Error("Unexpected configuration state broker was started even if brokerURI is null");
449+
throw new Error("Unexpected configuration state. Broker was started but brokerURI is null");
450450
}
451451

452452
this.hostedServer = Server({});

packages/cli/src/parsers/config-file-parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ export function parseConfigFile(filename: string, previous: unknown) {
2626
if (err instanceof InvalidArgumentError) {
2727
throw err;
2828
}
29-
throw new InvalidArgumentError(`\nError reading config file: ${err}`);
29+
throw new InvalidArgumentError(`Error reading config file: ${err}`);
3030
}
3131
}

0 commit comments

Comments
 (0)