diff --git a/cli/compile/compile.go b/cli/compile/compile.go index 84514062e60..3491ef7afb5 100644 --- a/cli/compile/compile.go +++ b/cli/compile/compile.go @@ -88,7 +88,7 @@ func NewCommand() *cobra.Command { func run(cmd *cobra.Command, args []string) { inst, err := instance.CreateInstance() if err != nil { - feedback.Errorf("Error during build: %v", err) + feedback.Errorf("Error creating instance: %v", err) os.Exit(errorcodes.ErrGeneric) } diff --git a/commands/compile/compile.go b/commands/compile/compile.go index b3ea4fe9318..9b2ecdfaa89 100644 --- a/commands/compile/compile.go +++ b/commands/compile/compile.go @@ -163,7 +163,7 @@ func Compile(ctx context.Context, req *rpc.CompileReq, outStream, errStream io.W // if it's a regular build, go on... if err := builder.RunBuilder(builderCtx); err != nil { - return nil, fmt.Errorf("build failed: %s", err) + return nil, err } // FIXME: Make a function to obtain these info... diff --git a/legacy/builder/phases/sizer.go b/legacy/builder/phases/sizer.go index 271d8d147c9..71bf5986fd6 100644 --- a/legacy/builder/phases/sizer.go +++ b/legacy/builder/phases/sizer.go @@ -105,12 +105,12 @@ func checkSize(ctx *types.Context, buildProperties *properties.Map) error { if textSize > maxTextSize { logger.Println(constants.LOG_LEVEL_ERROR, constants.MSG_SIZER_TEXT_TOO_BIG) - return errors.New("") + return errors.New("text section exceeds available space in board") } if maxDataSize > 0 && dataSize > maxDataSize { logger.Println(constants.LOG_LEVEL_ERROR, constants.MSG_SIZER_DATA_TOO_BIG) - return errors.New("") + return errors.New("data section exceeds available space in board") } if properties.Get(constants.PROPERTY_WARN_DATA_PERCENT) != "" {