mirror of
https://github.com/strapi/strapi.git
synced 2025-12-12 15:32:42 +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:
|
||||
|
||||
```typescript
|
||||
const event: Diagnostic = {
|
||||
const event: ErrorDiagnostic = {
|
||||
kind: 'error',
|
||||
details: {
|
||||
message: "Your error"
|
||||
createdAt: new Date(),
|
||||
}
|
||||
},
|
||||
name: "myError",
|
||||
severity: 'fatal',
|
||||
error: new Error("my error")
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user