mirror of
https://github.com/goldbergyoni/nodebestpractices.git
synced 2025-11-01 10:26:49 +08:00
@ -1295,6 +1295,15 @@
|
|||||||
"contributions": [
|
"contributions": [
|
||||||
"content"
|
"content"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"login": "kubanac95",
|
||||||
|
"name": "Aleksandar",
|
||||||
|
"avatar_url": "https://avatars.githubusercontent.com/u/16191931?v=4",
|
||||||
|
"profile": "https://github.com/kubanac95",
|
||||||
|
"contributions": [
|
||||||
|
"content"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"projectName": "nodebestpractices",
|
"projectName": "nodebestpractices",
|
||||||
|
|||||||
@ -1563,6 +1563,7 @@ Thanks goes to these wonderful people who have contributed to this repository!
|
|||||||
<td align="center"><a href="https://github.com/YA21"><img src="https://avatars.githubusercontent.com/u/37298463?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yuta Azumi</b></sub></a><br /><a href="#content-YA21" title="Content">🖋</a></td>
|
<td align="center"><a href="https://github.com/YA21"><img src="https://avatars.githubusercontent.com/u/37298463?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yuta Azumi</b></sub></a><br /><a href="#content-YA21" title="Content">🖋</a></td>
|
||||||
<td align="center"><a href="https://github.com/andrewjbarbour"><img src="https://avatars.githubusercontent.com/u/77080074?v=4?s=100" width="100px;" alt=""/><br /><sub><b>andrewjbarbour</b></sub></a><br /><a href="#content-andrewjbarbour" title="Content">🖋</a></td>
|
<td align="center"><a href="https://github.com/andrewjbarbour"><img src="https://avatars.githubusercontent.com/u/77080074?v=4?s=100" width="100px;" alt=""/><br /><sub><b>andrewjbarbour</b></sub></a><br /><a href="#content-andrewjbarbour" title="Content">🖋</a></td>
|
||||||
<td align="center"><a href="https://MasujimaRyohei.jp"><img src="https://avatars.githubusercontent.com/u/17163541?v=4?s=100" width="100px;" alt=""/><br /><sub><b>mr</b></sub></a><br /><a href="#content-MasujimaRyohei" title="Content">🖋</a></td>
|
<td align="center"><a href="https://MasujimaRyohei.jp"><img src="https://avatars.githubusercontent.com/u/17163541?v=4?s=100" width="100px;" alt=""/><br /><sub><b>mr</b></sub></a><br /><a href="#content-MasujimaRyohei" title="Content">🖋</a></td>
|
||||||
|
<td align="center"><a href="https://github.com/kubanac95"><img src="https://avatars.githubusercontent.com/u/16191931?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Aleksandar</b></sub></a><br /><a href="#content-kubanac95" title="Content">🖋</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
@ -104,7 +104,7 @@ function errorHandler() {
|
|||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
class ErrorHandler {
|
class ErrorHandler {
|
||||||
public async handleError(err: Error, responseStream: Response): Promise<void> {
|
public async handleError(error: Error, responseStream: Response): Promise<void> {
|
||||||
await logger.logError(error);
|
await logger.logError(error);
|
||||||
await fireMonitoringMetric(error);
|
await fireMonitoringMetric(error);
|
||||||
await crashIfUntrustedErrorOrSendResponse(error, responseStream);
|
await crashIfUntrustedErrorOrSendResponse(error, responseStream);
|
||||||
|
|||||||
Reference in New Issue
Block a user