mirror of
https://github.com/apache/struts.git
synced 2026-08-06 23:27:07 +00:00
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:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user