Fix KCLError to have a real message (#6396)

* Fix KCLError to have a real message

* Remove unneeded error exception
This commit is contained in:
Jonathan Tran
2025-04-18 17:13:09 -04:00
committed by GitHub
parent dad0d5488f
commit a0f3f0f50e
2 changed files with 1 additions and 11 deletions

View File

@ -37,7 +37,7 @@ export class KCLError extends Error {
filenames: { [x: number]: ModulePath | undefined },
defaultPlanes: DefaultPlanes | null
) {
super()
super(`${kind}: ${msg}`)
this.kind = kind
this.msg = msg
this.sourceRange = sourceRange