KCL: Rephrase confusing error msg (#6436)

Before:

  × undefined value: memory item key `foo` is not defined

Now:

  × undefined value: `foo` is not defined
This commit is contained in:
Adam Chalmers
2025-04-22 15:24:53 -05:00
committed by GitHub
parent 29d6b22d63
commit 9730e3f5b3
5 changed files with 7 additions and 7 deletions

View File

@ -462,7 +462,7 @@ const theExtrude = startSketchOn(XY)
await expect(exe(code)).rejects.toEqual(
new KCLError(
'undefined_value',
'memory item key `myVarZ` is not defined',
'`myVarZ` is not defined',
topLevelRange(129, 135),
[],
[],