1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

feat: update error codes in the projects API

This commit is contained in:
Christy Jacob 2022-02-06 21:11:31 +04:00
parent 44c923144a
commit 11cb9b9dd9

View file

@ -728,7 +728,7 @@ App::put('/v1/projects/:projectId/webhooks/:webhookId')
]);
if ($webhook === false || $webhook->isEmpty()) {
throw new Exception('Webhook not found', 404), Exception::WEBHOOK_NOT_FOUND;
throw new Exception('Webhook not found', 404, Exception::WEBHOOK_NOT_FOUND);
}
$webhook