Skip to content

Commit

Permalink
Merge pull request #759 from OpenFn/mssql-catch
Browse files Browse the repository at this point in the history
`mssql` remove process.exit(1)
  • Loading branch information
josephjclark authored Sep 26, 2024
2 parents 4a20313 + 287b44a commit ec8b9d8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 6 additions & 0 deletions packages/mssql/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @openfn/language-mssql

## 5.0.3

### Patch Changes

- 6d38a48: Removed process.exit(1) to prevent workflow crashes on errors

## 5.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/mssql/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openfn/language-mssql",
"version": "5.0.2",
"version": "5.0.3",
"description": "A Microsoft SQL language pack for OpenFn",
"exports": {
".": {
Expand Down
6 changes: 1 addition & 5 deletions packages/mssql/src/Adaptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,7 @@ export function execute(...operations) {
createConnection,
...operations,
cleanupState
)({ ...initialState, ...state }).catch(e => {
console.error(e);
console.error('Unhandled error in the operations. Exiting process.');
process.exit(1);
});
)({ ...initialState, ...state });
};
}

Expand Down

0 comments on commit ec8b9d8

Please sign in to comment.