From 8c3a0ca2feb7f97c49a810c21192448830366358 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Tue, 24 Feb 2026 15:33:48 +0900 Subject: [PATCH] refactor(hashline-edit): rename legacy operation names in error messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update error messages to match current op schema: - insert_after → append (anchored) - insert_before → prepend (anchored) --- src/tools/hashline-edit/edit-operation-primitives.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/hashline-edit/edit-operation-primitives.ts b/src/tools/hashline-edit/edit-operation-primitives.ts index 43a235450..cd93e923d 100644 --- a/src/tools/hashline-edit/edit-operation-primitives.ts +++ b/src/tools/hashline-edit/edit-operation-primitives.ts @@ -80,7 +80,7 @@ export function applyInsertAfter( const result = [...lines] const newLines = stripInsertAnchorEcho(lines[line - 1], toNewLines(text)) if (newLines.length === 0) { - throw new Error(`insert_after requires non-empty text for ${anchor}`) + throw new Error(`append (anchored) requires non-empty text for ${anchor}`) } result.splice(line, 0, ...newLines) return result @@ -97,7 +97,7 @@ export function applyInsertBefore( const result = [...lines] const newLines = stripInsertBeforeEcho(lines[line - 1], toNewLines(text)) if (newLines.length === 0) { - throw new Error(`insert_before requires non-empty text for ${anchor}`) + throw new Error(`prepend (anchored) requires non-empty text for ${anchor}`) } result.splice(line - 1, 0, ...newLines) return result