@@ -189,22 +189,22 @@ func Compile(ctx context.Context, req *rpc.CompileReq, outStream, errStream io.W
189
189
if req .GetShowProperties () {
190
190
if err := builder .RunParseHardwareAndDumpBuildProperties (builderCtx ); err != nil {
191
191
fmt .Fprintf (errStream , "error: %s" , err )
192
- return & rpc.CompileResp {Result : rpc .CompileResult_error }, nil
192
+ return & rpc.CompileResp {Result : rpc .CompileResult_compile_error }, nil
193
193
}
194
- return & rpc.CompileResp {Result : rpc .CompileResult_success }, nil
194
+ return & rpc.CompileResp {Result : rpc .CompileResult_compile_success }, nil
195
195
}
196
196
if req .GetPreprocess () {
197
197
if err := builder .RunPreprocess (builderCtx ); err != nil {
198
198
fmt .Fprintf (errStream , "error: %s" , err )
199
- return & rpc.CompileResp {Result : rpc .CompileResult_error }, nil
199
+ return & rpc.CompileResp {Result : rpc .CompileResult_compile_error }, nil
200
200
}
201
- return & rpc.CompileResp {Result : rpc .CompileResult_success }, nil
201
+ return & rpc.CompileResp {Result : rpc .CompileResult_compile_success }, nil
202
202
}
203
203
204
204
// if it's a regular build, go on...
205
205
if err := builder .RunBuilder (builderCtx ); err != nil {
206
206
fmt .Fprintf (errStream , "error: %s" , err )
207
- return & rpc.CompileResp {Result : rpc .CompileResult_error }, nil
207
+ return & rpc.CompileResp {Result : rpc .CompileResult_compile_error }, nil
208
208
}
209
209
210
210
if ! req .GetDryRun () {
@@ -266,5 +266,5 @@ func Compile(ctx context.Context, req *rpc.CompileReq, outStream, errStream io.W
266
266
}
267
267
268
268
logrus .Tracef ("Compile %s for %s successful" , sketch .Name , fqbnIn )
269
- return & rpc.CompileResp {Result : rpc .CompileResult_success }, nil
269
+ return & rpc.CompileResp {Result : rpc .CompileResult_compile_success }, nil
270
270
}
0 commit comments