Skip to content

Commit 5e2b64d

Browse files
authored
Don't log error when attempting a debug attach in a non-Interoperability namespace (#1394)
1 parent 11d3535 commit 5e2b64d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/extension.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -941,12 +941,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
941941
.actionQuery("SELECT Job, ConfigName FROM Ens.Job_Enumerate() WHERE State = 'Alive'", [])
942942
.then((data) => Object.fromEntries(data.result.content.map((x) => [x.Job, x.ConfigName])))
943943
.catch((error) => {
944-
if (
945-
error &&
946-
error.errorText &&
947-
!error.errorText.includes("'ENS.JOB_ENUMERATE'(...)") &&
948-
error.errorText != ""
949-
) {
944+
if (error?.errorText && error.errorText != "" && !error.errorText.includes("ENS.JOB_ENUMERATE")) {
950945
// Hide errors about Ens.Job_Enumerate procedure not existing because
951946
// the current namespace may not be Interoperability-enabled
952947
outputChannel.appendLine("\n" + error.errorText);

0 commit comments

Comments
 (0)