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 continue
} catch (exception: Throwable) { } catch (exception: Throwable) {
if (generator.allowedFail) { if (generator.allowedFail) {
println("Generator ${generator.name} crashed: $exception")
continue continue
} }
throw exception throw exception
} }
if (generator.entries == 0) { if (generator.entries == 0) {
if (generator.allowEmpty) { if (generator.allowEmpty) {
println("Generator ${generator.name} has 0 entries!")
continue continue
} else { } else {
error("${generator.name} has 0 entries!") error("${generator.name} has 0 entries!")