提交 e3c44377 编写于 作者: S Sandeep Somavarapu

Configuration editing service: Fail if there is a real error while editing

上级 e141f19b
......@@ -69,7 +69,7 @@ export class ConfigurationEditingService implements IConfigurationEditingService
// First validate before making any edits
return this.validate(target, operation, options).then(validation => {
if (!options.writeToBuffer && typeof validation.error === 'number') {
if (typeof validation.error === 'number') {
// Target cannot contain JSON errors if writing to disk
return this.wrapError(validation.error, target);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册