/*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ import { DebugProtocol } from 'vscode-debugprotocol'; import { ErrorWithMessage } from 'vscode-chrome-debug-core/out/src/errors'; import * as nls from 'vscode-nls'; const localize = nls.loadMessageBundle(); /** * 'Path does not exist' error */ export function getNotExistErrorResponse(attribute: string, path: string): Promise { return Promise.reject(new ErrorWithMessage({ id: 2007, format: localize('attribute.path.not.exist', "Attribute '{0}' does not exist ('{1}').", attribute, '{path}'), variables: { path } })); }