🐛 Fix SNS-Trigger-Node

This commit is contained in:
Jan Oberhauser
2020-02-09 18:27:06 -08:00
parent ca047b9c78
commit 3fe236b9e6
3 changed files with 45 additions and 27 deletions

View File

@@ -42,10 +42,7 @@ export async function awsApiRequest(this: IHookFunctions | IExecuteFunctions | I
}
}
if (errorMessage !== undefined) {
throw errorMessage;
}
throw error.response.body;
throw new Error(`AWS error response [${error.statusCode}]: ${errorMessage}`);
}
}