Skip to content

Commit

Permalink
Don't log error when attempting a debug attach in a non-Interoperabil…
Browse files Browse the repository at this point in the history
…ity namespace (#1394)
  • Loading branch information
isc-bsaviano authored Jul 2, 2024
1 parent 11d3535 commit 5e2b64d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -941,12 +941,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
.actionQuery("SELECT Job, ConfigName FROM Ens.Job_Enumerate() WHERE State = 'Alive'", [])
.then((data) => Object.fromEntries(data.result.content.map((x) => [x.Job, x.ConfigName])))
.catch((error) => {
if (
error &&
error.errorText &&
!error.errorText.includes("'ENS.JOB_ENUMERATE'(...)") &&
error.errorText != ""
) {
if (error?.errorText && error.errorText != "" && !error.errorText.includes("ENS.JOB_ENUMERATE")) {
// Hide errors about Ens.Job_Enumerate procedure not existing because
// the current namespace may not be Interoperability-enabled
outputChannel.appendLine("\n" + error.errorText);
Expand Down

0 comments on commit 5e2b64d

Please sign in to comment.