Fix KCLError to have a real message (#6396)
* Fix KCLError to have a real message * Remove unneeded error exception
This commit is contained in:
@ -63,16 +63,6 @@ export const isErrorWhitelisted = (exception: Error) => {
|
|||||||
'e2e/playwright/can-create-sketches-on-all-planes-and-their-back-sides.spec.ts XY',
|
'e2e/playwright/can-create-sketches-on-all-planes-and-their-back-sides.spec.ts XY',
|
||||||
project: 'Google Chrome',
|
project: 'Google Chrome',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: '',
|
|
||||||
message: 'fE',
|
|
||||||
stack: `
|
|
||||||
at ET (file:///Users/runner/work/modeling-app/modeling-app/.vite/renderer/main_window/assets/index-DduzBCVE.js:49875:12)
|
|
||||||
at HGe.clearSceneAndBustCache (file:///Users/runner/work/modeling-app/modeling-app/.vite/renderer/main_window/assets/index-DduzBCVE.js:91941:19)
|
|
||||||
at async a.onEngineConnectionOpened (file:///Users/runner/work/modeling-app/modeling-app/.vite/renderer/main_window/assets/index-DduzBCVE.js:91538:9)`,
|
|
||||||
foundInSpec: 'e2e/playwright/testing-constraints.spec.ts',
|
|
||||||
project: 'Google Chrome',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'RangeError',
|
name: 'RangeError',
|
||||||
message: 'Position 160 is out of range for changeset of length 0',
|
message: 'Position 160 is out of range for changeset of length 0',
|
||||||
|
@ -37,7 +37,7 @@ export class KCLError extends Error {
|
|||||||
filenames: { [x: number]: ModulePath | undefined },
|
filenames: { [x: number]: ModulePath | undefined },
|
||||||
defaultPlanes: DefaultPlanes | null
|
defaultPlanes: DefaultPlanes | null
|
||||||
) {
|
) {
|
||||||
super()
|
super(`${kind}: ${msg}`)
|
||||||
this.kind = kind
|
this.kind = kind
|
||||||
this.msg = msg
|
this.msg = msg
|
||||||
this.sourceRange = sourceRange
|
this.sourceRange = sourceRange
|
||||||
|
Reference in New Issue
Block a user