From 5526204f4bb0d9e5f0ab986efa1ebef28bb1b9df Mon Sep 17 00:00:00 2001 From: Max Savin Date: Mon, 8 Jul 2019 17:23:20 +0200 Subject: [PATCH] Record error when a job fails --- package/server/imports/actions/execute/process.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/server/imports/actions/execute/process.js b/package/server/imports/actions/execute/process.js index 5d291fc..1c3e328 100755 --- a/package/server/imports/actions/execute/process.js +++ b/package/server/imports/actions/execute/process.js @@ -22,7 +22,7 @@ var process = function (doc, callback) { } catch (e) { - var failure = Toolbelt.failure(); + var failure = Toolbelt.failure(e.stack); Utilities.logger("Job failed to run due to code error: " + doc.name) console.log(e);