From 1d50be08557073c3db9842e25ba7289a83529d24 Mon Sep 17 00:00:00 2001 From: James Date: Tue, 8 Oct 2019 10:02:55 -0600 Subject: [PATCH] Change exits to success --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index d030d0a..c617575 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ Toolkit.run(async tools => { var eventModule = require(`./lib/handlers/${handlerRef}`); } catch (e) { console.log(e) - return tools.exit.neutral('Failed to load module for event. No action necessary.'); + return tools.exit.success('Failed to load module for event. No action necessary.'); } const moduleAction = eventModule[tools.context.payload.action] || eventModule[tools.context.payload.ref_type]; @@ -20,7 +20,7 @@ Toolkit.run(async tools => { console.log(tools.context.payload); if (!moduleAction) { - return tools.exit.neutral('Failed to find sub handler. No action necessary.'); + return tools.exit.success('Failed to find sub handler. No action necessary.'); } try {