Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed wrong error report
  • Loading branch information
cmaglie committed Jan 17, 2023
commit 33723af8cb82b4a5da8f6de9b43609ddcb075aab
4 changes: 2 additions & 2 deletions commands/compile/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func Compile(ctx context.Context, req *rpc.CompileRequest, outStream, errStream
// Just get build properties and exit
compileErr := builder.RunParseHardware(builderCtx)
if compileErr != nil {
compileErr = &arduino.CompileFailedError{Message: err.Error()}
compileErr = &arduino.CompileFailedError{Message: compileErr.Error()}
}
return r, compileErr
}
Expand All @@ -211,7 +211,7 @@ func Compile(ctx context.Context, req *rpc.CompileRequest, outStream, errStream
// Just output preprocessed source code and exit
compileErr := builder.RunPreprocess(builderCtx)
if compileErr != nil {
compileErr = &arduino.CompileFailedError{Message: err.Error()}
compileErr = &arduino.CompileFailedError{Message: compileErr.Error()}
}
return r, compileErr
}
Expand Down