Skip to content

Commit

Permalink
fix: display JVM build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Dec 18, 2024
1 parent 0fca476 commit de165b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/java/echo/src/main/java/ftl/echo/Echo.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ public class Echo {
@Verb
public EchoResponse echo(EchoRequest req, TimeClient time) {
var response = time.time();
return new EchoResponse("Hello, " + req.name().orElse("anonymous") + "! The time is " + response.getTime() + ".");
return new EchoResponse("Hello, " + req.name().orElse("anonymous") + "! The time is " + response.getTime() + ".")
}
}
2 changes: 1 addition & 1 deletion jvm-runtime/plugin/common/jvmcommon.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ func build(ctx context.Context, bctx buildContext, autoRebuild bool) (*langpb.Bu
}
logger.Infof("Using build command '%s'", config.Build)
command := exec.Command(ctx, log.Debug, config.Dir, "bash", "-c", config.Build)
err = command.Run()
err = command.RunBuffered(ctx)
if err != nil {
return &langpb.BuildResponse{Event: &langpb.BuildResponse_BuildFailure{&langpb.BuildFailure{
IsAutomaticRebuild: autoRebuild,
Expand Down

0 comments on commit de165b8

Please sign in to comment.