mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 22:32:27 +08:00
refactor: improve diagram handling and error messaging in chat components
This commit is contained in:
@@ -276,7 +276,7 @@ export function replaceXMLParts(
|
||||
}
|
||||
|
||||
if (!matchFound) {
|
||||
throw new Error(`Search block not found:\n${search}\n...does not match anything in the file.`);
|
||||
throw new Error(`Search pattern not found in the diagram. The pattern may not exist in the current structure.`);
|
||||
}
|
||||
|
||||
// Replace the matched lines
|
||||
|
||||
Reference in New Issue
Block a user