details: https://code.openbravo.com/erp/devel/pi/rev/3758cd466f44
changeset: 20691:3758cd466f44
user: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date: Wed Jul 03 10:37:43 2013 +0530
summary: Fixes Issue 0024217: Little problem with Oracle messages in the ERP
Comparing for delimiter \n and if not found check for \\n. In oracle, some
error stack comes without delimiting \n and some with delimiting \\n.
Now it handles both these cases.
diffstat:
src/org/openbravo/erpCommon/utility/ErrorTextParserORACLE.java | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 4c9e4abdefee -r 3758cd466f44
src/org/openbravo/erpCommon/utility/ErrorTextParserORACLE.java
--- a/src/org/openbravo/erpCommon/utility/ErrorTextParserORACLE.java Sun Jun
30 11:50:57 2013 +0530
+++ b/src/org/openbravo/erpCommon/utility/ErrorTextParserORACLE.java Wed Jul
03 10:37:43 2013 +0530
@@ -117,7 +117,10 @@
String toTranslate = myMessage.replace(errorCodeText + ": ", "");
// assumption incoming error message useful part is completely
contained in the first line
- pos = toTranslate.indexOf("\\n");
+ pos = toTranslate.indexOf("\n");
+ if (pos == -1) {
+ pos = toTranslate.indexOf("\\n");
+ }
if (pos != -1) {
toTranslate = toTranslate.substring(0, pos);
}
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits