Skip to content

Commit

Permalink
check errors parsing replace
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Chacin <[email protected]>
  • Loading branch information
pablochacin committed Nov 12, 2024
1 parent 07f0ea3 commit 2c80285
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ func (b Builder) Build(ctx context.Context, log *slog.Logger, outfile string) er
}
for _, r := range b.Replacements {
// parse again the replacement, ignore the error because it was already parsed
mod, _ := k6foundry.ParseModule(fmt.Sprintf("%s=%s", r.Old.String(), r.New.String()))
mod, err := k6foundry.ParseModule(fmt.Sprintf("%s=%s", r.Old.String(), r.New.String()))
if err != nil {
return err
}
mods = append(mods, mod)
}

Expand Down

0 comments on commit 2c80285

Please sign in to comment.