mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-02-07 11:36:25 +02:00
Don't fail on recursive preset usage, just ignore used preset and log warning
This commit is contained in:
parent
0cfeab65db
commit
c0c471ac99
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user