File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,10 @@ Inspired by Yan Cui's articles on latency injection for AWS Lambda (https://hack
57
57
58
58
## Changelog
59
59
60
+ ### 2020-02-13 v0.1.1
61
+
62
+ * Fixed issue with exception injection not throwing the exception. Thanks to [ Jason Barto] ( https://github.com/jpbarto ) !
63
+
60
64
### 2019-12-30 v0.1.0
61
65
62
66
* Added disk space failure.
@@ -68,4 +72,4 @@ Inspired by Yan Cui's articles on latency injection for AWS Lambda (https://hack
68
72
69
73
## Authors
70
74
71
- ** Gunnar Grosch** - [ GitHub] ( https://github.com/gunnargrosch ) | [ Twitter] ( https://twitter.com/gunnargrosch ) | [ LinkedIn] ( https://www.linkedin.com/in/gunnargrosch/ )
75
+ ** Gunnar Grosch** - [ GitHub] ( https://github.com/gunnargrosch ) | [ Twitter] ( https://twitter.com/gunnargrosch ) | [ LinkedIn] ( https://www.linkedin.com/in/gunnargrosch/ )
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const aws = require('aws-sdk')
3
3
const ssm = new aws . SSM ( )
4
4
const childProcess = require ( 'child_process' )
5
5
6
- async function getConfig ( ) {
6
+ async function getConfig ( ) {
7
7
try {
8
8
let params = {
9
9
Name : process . env . FAILURE_INJECTION_PARAM
@@ -41,6 +41,7 @@ var injectFailure = function (fn) {
41
41
return fn . apply ( this , arguments )
42
42
} catch ( ex ) {
43
43
console . log ( ex )
44
+ throw ex
44
45
}
45
46
}
46
47
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " failure-lambda" ,
3
- "version" : " 0.1.0 " ,
3
+ "version" : " 0.1.1 " ,
4
4
"description" : " Module for failure injection into AWS Lambda" ,
5
5
"main" : " ./lib/failure.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments