Skip to content

Commit c914b9f

Browse files
Fix error processing in WebTerminal API execute function
1 parent af4c564 commit c914b9f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"printableName": "Cache Web Terminal",
66
"description": "Web-based terminal emulator for Caché administering.",
77
"author": "ZitRo",
8-
"version": "4.6.0",
8+
"version": "4.6.1",
99
"gaID": "UA-83005064-2",
1010
"releaseNumber": 26,
1111
"scripts": {

src/cls/WebTerminal/Handlers.cls

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ loop
7070
} elseif (flag = "e") {
7171
set client.childNamespace = $LISTGET(chunk, 1)
7272
set err = $LISTGET(chunk, 2)
73+
if $IsObject(data) && (data.bufferOutput = 1) {
74+
do client.outputBuffer.Write(err)
75+
quit // break for loop
76+
}
7377
if (err '= "") {
7478
do client.Send(
7579
"execError",

0 commit comments

Comments
 (0)