diff --git a/cmd/compare.go b/cmd/compare.go index eedb221..9cf4f54 100644 --- a/cmd/compare.go +++ b/cmd/compare.go @@ -46,7 +46,7 @@ func runCompare(cmd *cobra.Command, options compareOptions) error { } changes, err := resourceManager.GetChanges() if err != nil { - os.Exit(1) + os.Exit(2) } if len(changes) == 0 { return nil diff --git a/cmd/sync.go b/cmd/sync.go index 0e4f645..a0e9032 100644 --- a/cmd/sync.go +++ b/cmd/sync.go @@ -49,7 +49,7 @@ func runSync(cmd *cobra.Command, options syncOptions) error { if options.dryRun { changes, err := resourceManager.GetChanges() if err != nil { - os.Exit(1) + os.Exit(2) } printChangedResources(cmd.OutOrStdout(), changes) } else {