Fixed: Fix Default or Empty Catch block in Java and Groovy files
(OFBIZ-8341) In many Java and Groovy files we have auto generated catch blocks or empty catch blocks. To avoid such exception swallowing this should be improved to at least log the error and also return error in case of service. Here we use 3 try-with-ressource blocks and log some errors git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866957 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -64,6 +64,8 @@ if (parameters.logFileName && logFileName.contains(parameters.logFileName)) {
|
||||
}
|
||||
logLines.add([type: type, line:line])
|
||||
}
|
||||
} catch (Exception exc) {}
|
||||
} catch (Exception e) {
|
||||
Debug.logError(e, "FetchLogs.groovy");
|
||||
}
|
||||
context.logLines = logLines
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user