Skip to content

Commit 4622312

Browse files
author
Dushyant Bhalgami
committed
added throw statements:
1 parent 2fefa14 commit 4622312

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

package-lock.json

Lines changed: 17 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"ifxnjs": "^8.0.1",
2727
"joi": "^13.4.0",
2828
"legacy-processor-module": "git+https://github.com/topcoder-platform/legacy-processor-module.git#master",
29-
"lodash": "^4.17.10",
29+
"lodash": "^4.17.14",
3030
"moment": "^2.24.0",
3131
"moment-timezone": "^0.5.26",
3232
"no-kafka": "^3.2.10",

src/services/SubmissionService.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ async function handle(event) {
8989
} catch (error) {
9090
logger.error(`Failed to handle ${JSON.stringify(event)}: ${error.message}`);
9191
logger.error(error);
92+
throw error;
9293
}
9394
} else if (event.payload.url) {
9495
// We only concerns updating url,
@@ -119,6 +120,7 @@ async function handle(event) {
119120
} catch (error) {
120121
logger.error(`Failed to handle ${JSON.stringify(event)}: ${error.message}`);
121122
logger.error(error);
123+
throw error;
122124
}
123125
}
124126
}

0 commit comments

Comments
 (0)