Skip to content

Commit 5858721

Browse files
committed
Sketch preprocessing should just output preprocessed sketch
There is nothing left to do after preprocessing.
1 parent 8507cbe commit 5858721

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: commands/compile/compile.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ func Compile(ctx context.Context, req *rpc.CompileReq, outStream, errStream io.W
161161
if req.GetShowProperties() {
162162
err = builder.RunParseHardwareAndDumpBuildProperties(builderCtx)
163163
} else if req.GetPreprocess() {
164-
err = builder.RunPreprocess(builderCtx)
164+
if err = builder.RunPreprocess(builderCtx); err != nil {
165+
return nil, fmt.Errorf("preprocessing sketch: %s", err)
166+
}
167+
return &rpc.CompileResp{}, nil
165168
} else {
166169
err = builder.RunBuilder(builderCtx)
167170
}

0 commit comments

Comments
 (0)