mirror of
https://github.com/strapi/strapi.git
synced 2025-12-14 16:51:55 +00:00
complete error
This commit is contained in:
parent
1f3c24fc8b
commit
1c922b0ec3
@ -220,12 +220,15 @@ engine.diagnostics.on('warning', diagnosticListener);
|
|||||||
To emit your own diagnostics event:
|
To emit your own diagnostics event:
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
const event: Diagnostic = {
|
const event: ErrorDiagnostic = {
|
||||||
kind: 'error',
|
kind: 'error',
|
||||||
details: {
|
details: {
|
||||||
message: "Your error"
|
message: "Your error"
|
||||||
createdAt: new Date(),
|
createdAt: new Date(),
|
||||||
}
|
},
|
||||||
|
name: "myError",
|
||||||
|
severity: 'fatal',
|
||||||
|
error: new Error("my error")
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user