Stop throwing in frontend code (#2654)

Return error instead of throw
This commit is contained in:
49fl
2024-06-24 11:45:40 -04:00
committed by GitHub
parent f7196e7eb0
commit f4877cb160
67 changed files with 5127 additions and 4523 deletions

View File

@ -4,6 +4,8 @@ describe('test kclErrToDiagnostic', () => {
it('converts KCL errors to CodeMirror diagnostics', () => {
const errors: KCLError[] = [
{
name: '',
message: '',
kind: 'semantic',
msg: 'Semantic error',
sourceRanges: [
@ -12,6 +14,8 @@ describe('test kclErrToDiagnostic', () => {
],
},
{
name: '',
message: '',
kind: 'type',
msg: 'Type error',
sourceRanges: [