mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(cli): Clarify webhook error message & fix typo
This commit is contained in:
@@ -113,8 +113,8 @@ export class ActiveWorkflowRunner {
|
|||||||
const webhookData: IWebhookData | undefined = this.activeWebhooks!.get(httpMethod, path);
|
const webhookData: IWebhookData | undefined = this.activeWebhooks!.get(httpMethod, path);
|
||||||
|
|
||||||
if (webhookData === undefined) {
|
if (webhookData === undefined) {
|
||||||
// The requested webhook is not registred
|
// The requested webhook is not registered
|
||||||
throw new ResponseHelper.ResponseError('The requested webhook is not registred.', 404, 404);
|
throw new ResponseHelper.ResponseError(`The requested webhook "${httpMethod} ${path}" is not registered.`, 404, 404);
|
||||||
}
|
}
|
||||||
|
|
||||||
const workflowData = await Db.collections.Workflow!.findOne(webhookData.workflowId);
|
const workflowData = await Db.collections.Workflow!.findOne(webhookData.workflowId);
|
||||||
|
|||||||
@@ -58,8 +58,8 @@ export class TestWebhooks {
|
|||||||
const webhookData: IWebhookData | undefined = this.activeWebhooks!.get(httpMethod, path);
|
const webhookData: IWebhookData | undefined = this.activeWebhooks!.get(httpMethod, path);
|
||||||
|
|
||||||
if (webhookData === undefined) {
|
if (webhookData === undefined) {
|
||||||
// The requested webhook is not registred
|
// The requested webhook is not registered
|
||||||
throw new ResponseHelper.ResponseError('The requested webhook is not registred.', 404, 404);
|
throw new ResponseHelper.ResponseError(`The requested webhook "${httpMethod} ${path}" is not registered.`, 404, 404);
|
||||||
}
|
}
|
||||||
|
|
||||||
const webhookKey = this.activeWebhooks!.getWebhookKey(webhookData.httpMethod, webhookData.path);
|
const webhookKey = this.activeWebhooks!.getWebhookKey(webhookData.httpMethod, webhookData.path);
|
||||||
|
|||||||
Reference in New Issue
Block a user