🔀 Merge pull request #433 from ceefour/webhook-fix

fix(cli): Clarify webhook error message & fix typo
This commit is contained in:
Jan 2020-03-31 23:39:43 +02:00 committed by GitHub
commit c267daf778
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -113,8 +113,8 @@ export class ActiveWorkflowRunner {
const webhookData: IWebhookData | undefined = this.activeWebhooks!.get(httpMethod, path);
if (webhookData === undefined) {
// The requested webhook is not registred
throw new ResponseHelper.ResponseError('The requested webhook is not registred.', 404, 404);
// The requested webhook is not registered
throw new ResponseHelper.ResponseError(`The requested webhook "${httpMethod} ${path}" is not registered.`, 404, 404);
}
const workflowData = await Db.collections.Workflow!.findOne(webhookData.workflowId);

View file

@ -58,8 +58,8 @@ export class TestWebhooks {
const webhookData: IWebhookData | undefined = this.activeWebhooks!.get(httpMethod, path);
if (webhookData === undefined) {
// The requested webhook is not registred
throw new ResponseHelper.ResponseError('The requested webhook is not registred.', 404, 404);
// The requested webhook is not registered
throw new ResponseHelper.ResponseError(`The requested webhook "${httpMethod} ${path}" is not registered.`, 404, 404);
}
const webhookKey = this.activeWebhooks!.getWebhookKey(webhookData.httpMethod, webhookData.path);