DTStack / DTStack/molecule

Enhancement for the Exception handling

Open
#236 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
970
Forks
141
PR merge metrics
No merged PRs in 30d

Description

Some unexpected Errors could lead the page blank white screen;

Case:

item data:

```json
{"id":"fixedTab","name":"FlinkSQL","data":{"value":"select * from abc;e","language":"flinksql"},"value":{"code":"select * from abc;e","message":"extraneous input 'E' expecting ","startLineNumber":1,"startColumn":18,"endLineNumber":1,"endColumn":1,"status":8}}
```

```typescript
molecule.problems.addProblems(item)

```
The item lacks the `children` property:

![image](https://user-images.githubusercontent.com/2766811/125449128-246a2aeb-23d6-4898-a06e-71fcb8c069ad.png)

This Picture comes from ProblemsService added some unknown or incorrect type of data.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.