Skip to content

Commit

Permalink
Fix: small bugs (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanposhiho authored Mar 10, 2021
1 parent 39001aa commit cceeda2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion realmain/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ func (r Runner) Check() {

if m.CheckSum != checksum {
// mock is not up to date
log.Printf("[WARN] mock is not up to date. source: %s, destination: %s", source, destination)
if source == "" {
log.Printf("[WARN] mock is not up to date. destination: %s", destination)
} else {
log.Printf("[WARN] mock is not up to date. source: %s, destination: %s", source, destination)
}
isFail = true
}
return nil
Expand Down
1 change: 1 addition & 0 deletions realmain/mockgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ func (r Runner) Mockgen() {

g, _ := errgroup.WithContext(context.Background())
for _, m := range ch.Mocks {
m := m
g.Go(func() error {
var destination string
switch m.Mode {
Expand Down

0 comments on commit cceeda2

Please sign in to comment.