Pārlūkot izejas kodu

Don't fail on recursive preset usage, just ignore used preset and log warning

DarthSim 6 gadi atpakaļ
vecāks
revīzija
c0c471ac99
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      processing_options.go

+ 2 - 1
processing_options.go

@@ -522,7 +522,8 @@ func applyPresetOption(po *processingOptions, args []string) error {
 	for _, preset := range args {
 		if p, ok := conf.Presets[preset]; ok {
 			if po.isPresetUsed(preset) {
-				return fmt.Errorf("Recursive preset usage is detected: %s", preset)
+				logWarning("Recursive preset usage is detected: %s", preset)
+				continue
 			}
 
 			po.presetUsed(preset)