Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion agents/modules_meshcmd/amt-lme.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function lme_heci(options) {
this.LMS.emit('bind', this._binded);
} catch (ex)
{
console.info1(ex, 'Port ' + port);
console.info(ex, 'Port ' + port);
if(!this._emitConnected)
{
this._emitConnected = true;
Comment on lines 214 to 220

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🦩 🟠 console.info1 is not a standard console method, will throw inside catch block

In the APF_GLOBAL_REQUEST/tcpip-forward catch block inside lme_heci's connect handler, changed console.info1(ex, 'Port ' + port); to console.info(ex, 'Port ' + port);, replacing the nonexistent console.info1 method with the standard console.info so the catch block no longer throws and the subsequent this.LMS.emit('error', ...) executes as intended.

(Automatically downgraded: no change in this fix lands near this finding's line — verify whether it was actually addressed.)

🤖 Prompt for AI agents
In agents/modules_meshcmd/amt-lme.js around line 1, review and complete this code-review fix: console.info1 is not a standard console method, will throw inside catch block.
What the draft fix changed: In the `APF_GLOBAL_REQUEST`/`tcpip-forward` catch block inside `lme_heci`'s `connect` handler, changed `console.info1(ex, 'Port ' + port);` to `console.info(ex, 'Port ' + port);`, replacing the nonexistent `console.info1` method with the standard `console.info` so the catch block no longer throws and the subsequent `this.LMS.emit('error', ...)` executes as intended.

_(Automatically downgraded: no change in this fix lands near this finding's line — verify whether it was actually addressed.)_
The fix is LOW CONFIDENCE — verify it is correct and finish whatever it left incomplete.

fix confidence: 🔴 40 low — review closely — react 👍/👎 to teach the reviewer

Expand Down Expand Up @@ -493,3 +493,4 @@ function _lmsNotifyToCode(notify) {
}

module.exports = lme_heci;