mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Fix false error detection
This commit is contained in:
parent
a9e5e40a54
commit
0debbc263e
@ -215,21 +215,25 @@ public class IrisProject {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
KList<Report> reports = scanForErrors();
|
KList<Report> reports = scanForErrors();
|
||||||
sender.sendMessage("There are " + reports.size() + " problems detected with this project. See console!");
|
|
||||||
Iris.error("===========================================================");
|
|
||||||
for (Report i : reports) {
|
|
||||||
if (i.getType().equals(ReportType.ERROR)) {
|
|
||||||
hasError = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (i.getType()) {
|
if(reports.isNotEmpty())
|
||||||
case ERROR -> Iris.error(i.toString());
|
{
|
||||||
case SEVERE_WARNING -> Iris.warn(i.toString());
|
sender.sendMessage("There are " + reports.size() + " problems detected with this project. See console!");
|
||||||
case WARNING -> Iris.warn(i.toString());
|
Iris.error("===========================================================");
|
||||||
case NOTICE -> Iris.warn(i.toString());
|
for (Report i : reports) {
|
||||||
|
if (i.getType().equals(ReportType.ERROR)) {
|
||||||
|
hasError = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (i.getType()) {
|
||||||
|
case ERROR -> Iris.error(i.toString());
|
||||||
|
case SEVERE_WARNING -> Iris.warn(i.toString());
|
||||||
|
case WARNING -> Iris.warn(i.toString());
|
||||||
|
case NOTICE -> Iris.warn(i.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Iris.error("===========================================================");
|
||||||
}
|
}
|
||||||
Iris.error("===========================================================");
|
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
hasError = true;
|
hasError = true;
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user