We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 903ab98 commit d5a8846Copy full SHA for d5a8846
cmd/lekko/sync.go
@@ -318,9 +318,11 @@ func diffCmd() *cobra.Command {
318
return err
319
}
320
if !isHeadSame && !isBaseSame {
321
- return errors.New("Create a PR to fix Base first\n")
+ fmt.Print("Create a PR to fix Base first\n")
322
+ os.Exit(1)
323
} else if !isHeadSame && isBaseSame {
- return errors.New("Push Head changes to Lekko before Merge\n")
324
+ fmt.Print("Push Head changes to Lekko before Merge\n")
325
+ os.Exit(2)
326
} else if isHeadSame && !isBaseSame {
327
fmt.Print("Merging will make Base = Lekko\n")
328
return nil
0 commit comments