From 8ea5b7f845d93292eb5514d884e50aaef98b68b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rune=20Moskvil=20Lyng=C3=A5s?= Date: Tue, 10 May 2022 10:43:13 +0200 Subject: [PATCH] Since flow not found, return error here --- HandleDocument/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/HandleDocument/index.js b/HandleDocument/index.js index 2262c24..ec426f8 100644 --- a/HandleDocument/index.js +++ b/HandleDocument/index.js @@ -37,6 +37,7 @@ module.exports = async function (context, req) { flow = require(`../lib/flows/${blobType}`) } catch (error) { await logger('error', [blobType, 'flow not found', error]) + return azfHandleError(error, context, req) } // call flow type