Skip to content

Commit 9be7e1b

Browse files
committed
feat: improve error message for invalid WebSocket configuration in WsConsumer
1 parent 5c2cebe commit 9be7e1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nodejs/src/tmq/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class TmqConfig {
8989
this.dsn.addresses,
9090
this.dsn.database,
9191
this.dsn.params
92-
)
92+
);
9393
}
9494
}
9595
}

nodejs/src/tmq/wsTmq.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class WsConsumer {
7777
if (wsConfig.size == 0 || !wsConfig.get(TMQConstants.WS_URL)) {
7878
throw new WebSocketInterfaceError(
7979
ErrorCode.ERR_INVALID_URL,
80-
"invalid url, password or username needed."
80+
"Invalid DSN"
8181
);
8282
}
8383
const wsConsumer = new WsConsumer(wsConfig);

0 commit comments

Comments
 (0)