pixlyzer print error

This commit is contained in:
Bixilon 2022-11-23 14:18:12 +01:00
parent 27f146c317
commit c6246b51b3
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -113,12 +113,14 @@ object PixLyzer {
continue
} catch (exception: Throwable) {
if (generator.allowedFail) {
println("Generator ${generator.name} crashed: $exception")
continue
}
throw exception
}
if (generator.entries == 0) {
if (generator.allowEmpty) {
println("Generator ${generator.name} has 0 entries!")
continue
} else {
error("${generator.name} has 0 entries!")