Skip to content

Commit

Permalink
fix: respect plugin command exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
iocanel committed Aug 28, 2024
1 parent e230c4f commit 8254e81
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ default Integer call() throws Exception {
List<String> commandWithArgs = new ArrayList<>();
commandWithArgs.addAll(getCommand());
commandWithArgs.addAll(getArguments());
ExecuteUtil.executeProcess(getOutput(), commandWithArgs.toArray(new String[commandWithArgs.size()]),
return ExecuteUtil.executeProcess(getOutput(), commandWithArgs.toArray(new String[commandWithArgs.size()]),
getWorkingDirectory().toFile());
return 1;
} catch (Exception e) {
e.printStackTrace();
return getOutput().handleCommandException(e, "Unable to run plugin command: [" + String.join(" ", getCommand())
Expand Down

0 comments on commit 8254e81

Please sign in to comment.