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

commands/compile/compile.go

Lines changed: 4 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy