ADD improved error handling

This commit is contained in:
2025-05-13 21:41:57 +02:00
parent 25dd60dd82
commit ef742dab67
7 changed files with 46 additions and 17 deletions

View File

@@ -23,6 +23,12 @@ public class EditService {
}
}
if (clipConfig.getFileSize() != null) {
if (clipConfig.getFileSize() < 100) {
throw new IllegalArgumentException("File size cannot be less than 100kb");
}
}
job.setClipConfig(clipConfig);
}