Skip to content

Commit

Permalink
disconnect then throw
Browse files Browse the repository at this point in the history
  • Loading branch information
mtuchi committed Oct 26, 2023
1 parent 6cc1f0e commit 76fb47f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sftp/src/Adaptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export function execute(...operations) {
...operations,
disconnect
)({ ...initialState, ...state }).catch(e => {
console.error(e);
return disconnect(state);
disconnect(state);
throw e;
});
}

Expand Down

0 comments on commit 76fb47f

Please sign in to comment.