Skip to content

Commit

Permalink
Fix: return instead of exit (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanposhiho authored Sep 25, 2021
1 parent 469236b commit 8b202af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/command/mockgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r Runner) Mockgen() {
runner = m.SourceModeRunner
sourceChecksum, err = mockgen.SourceChecksum(runner)
if err != nil {
log.Fatalf("failed to calculate checksum of the source: %v", err)
return fmt.Errorf("failed to calculate checksum of the source: %v", err)
}
if sourceChecksum == m.SourceChecksum && !r.Args.ForceGenerate {
_, err := os.Stat(runner.GetDestination())
Expand Down

0 comments on commit 8b202af

Please sign in to comment.