Skip to content

Commit

Permalink
fix: Properly handle error if Java bridge is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrzesik committed Feb 2, 2021
1 parent f6ea966 commit 11fb141
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/plugins/aws/invokeLocal/index.js
Expand Up @@ -633,9 +633,8 @@ class AwsInvokeLocal {
const javaBridgePath = await this.resolveRuntimeWrapperPath('java');
const executablePath = path.join(javaBridgePath, 'target');

await fse.stat(executablePath);

try {
await fse.stat(executablePath);
return await this.callJavaBridge(artifactPath, className, handlerName, input);
} catch (err) {
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit 11fb141

Please sign in to comment.