diff --git a/src/views/objectBrowser.ts b/src/views/objectBrowser.ts index 797fbdfac..43e36ded2 100644 --- a/src/views/objectBrowser.ts +++ b/src/views/objectBrowser.ts @@ -540,8 +540,8 @@ export function initializeObjectBrowser(context: vscode.ExtensionContext) { noLibList: true }) - const messages = Tools.parseMessages(copyResult.stderr); - if (messages.findId(`CPF2869`)) { + const copyMessages = Tools.parseMessages(copyResult.stderr); + if (copyMessages.messages.length && !copyMessages.findId(`CPF2869`)) { throw (copyResult.stderr) }