Skip to content

Commit 78812fd

Browse files
committed
修改调试log
1 parent a2ce0f5 commit 78812fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cvbManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ function applyExactReplace(strContent: string, op: ExactReplaceOperation): strin
502502
regPattern.lastIndex = 0; // 重置正则表达式的状态
503503
if (!regPattern.test(strContent)) {
504504
console.log("以下表达式:\n" + regPattern + "\n 无法匹配:\n");
505-
throw new Error(`Exact-replace操作失败:文件 "${op.m_strFilePath}" 中未找到匹配项。请检查前后锚点及旧内容是否正确。`);
505+
throw new Error(`Exact-replace操作失败:文件 "${op.m_strFilePath}" 中未找到匹配项。请检查前后锚点及旧内容是否正确。## OLD_CONTENT\n${op.m_strOldContent}\n\n## BEFORE_ANCHOR\n${op.m_strBeforeAnchor}\n\n## AFTER_ANCHOR\n${op.m_strAfterAnchor} `);
506506
}
507507
regPattern.lastIndex = 0; // 再次重置以备替换
508508

0 commit comments

Comments
 (0)