WW-5617 Replace printStackTrace() with System.err in CompileReport (#1606)

Replace e.printStackTrace() with System.err.println() to properly
log errors to stderr without stack trace noise in CLI tools.

Issue: JRException handling in JasperReports compilation

Co-authored-by: Senrian <sen@senrian.com>
This commit is contained in:
Senrian
2026-03-13 23:32:12 +08:00
committed by GitHub
parent 55e268b009
commit 47d46f7013
@@ -39,7 +39,7 @@ public class CompileReport {
JasperCompileManager.compileReportToFile(args[i]);
}
} catch (JRException e) {
e.printStackTrace();
System.err.println("Failed to compile JasperReport: " + e.getMessage());
System.exit(-1);
}