فهرست منبع

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

DarthSim 6 سال پیش
والد
کامیت
c0c471ac99
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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)