Skip to content

Commit

Permalink
Merge pull request #5 from gunnargrosch/develop
Browse files Browse the repository at this point in the history
Fixed issue with exception injection not throwing the exception
  • Loading branch information
gunnargrosch authored Feb 13, 2020
2 parents 5343ff5 + 17d85b0 commit a45dec3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ Inspired by Yan Cui's articles on latency injection for AWS Lambda (https://hack

## Changelog

### 2020-02-13 v0.1.1

* Fixed issue with exception injection not throwing the exception. Thanks to [Jason Barto](https://github.com/jpbarto)!

### 2019-12-30 v0.1.0

* Added disk space failure.
Expand All @@ -68,4 +72,4 @@ Inspired by Yan Cui's articles on latency injection for AWS Lambda (https://hack

## Authors

**Gunnar Grosch** - [GitHub](https://github.com/gunnargrosch) | [Twitter](https://twitter.com/gunnargrosch) | [LinkedIn](https://www.linkedin.com/in/gunnargrosch/)
**Gunnar Grosch** - [GitHub](https://github.com/gunnargrosch) | [Twitter](https://twitter.com/gunnargrosch) | [LinkedIn](https://www.linkedin.com/in/gunnargrosch/)
3 changes: 2 additions & 1 deletion lib/failure.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const aws = require('aws-sdk')
const ssm = new aws.SSM()
const childProcess = require('child_process')

async function getConfig () {
async function getConfig() {
try {
let params = {
Name: process.env.FAILURE_INJECTION_PARAM
Expand Down Expand Up @@ -41,6 +41,7 @@ var injectFailure = function (fn) {
return fn.apply(this, arguments)
} catch (ex) {
console.log(ex)
throw ex
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "failure-lambda",
"version": "0.1.0",
"version": "0.1.1",
"description": "Module for failure injection into AWS Lambda",
"main": "./lib/failure.js",
"scripts": {
Expand Down

0 comments on commit a45dec3

Please sign in to comment.