From 899f2190f1fdf9a6d3611de9c6bd1212f8a67c4f Mon Sep 17 00:00:00 2001 From: Isaias Battaglia Date: Fri, 1 Dec 2023 08:49:05 -0300 Subject: [PATCH] Issue #144: Improve exeption message EPL-549 --- src-test/src/org/openbravo/financial/FinancialUtilsTest.java | 2 +- src/org/openbravo/financial/FinancialUtils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src-test/src/org/openbravo/financial/FinancialUtilsTest.java b/src-test/src/org/openbravo/financial/FinancialUtilsTest.java index e79c9e2c..91d096fa 100644 --- a/src-test/src/org/openbravo/financial/FinancialUtilsTest.java +++ b/src-test/src/org/openbravo/financial/FinancialUtilsTest.java @@ -29,7 +29,7 @@ public void testGetProductPriceWithNullProduct() { FinancialUtils.getProductPrice(null, date, useSalesPriceList, priceList); fail("Expected an OBException to be thrown"); } catch (OBException e) { - assertEquals("@ParameterMissing@", e.getMessage()); + assertEquals("@ParameterMissing@ @Product@", e.getMessage()); } } } diff --git a/src/org/openbravo/financial/FinancialUtils.java b/src/org/openbravo/financial/FinancialUtils.java index 2597afa3..3518389f 100644 --- a/src/org/openbravo/financial/FinancialUtils.java +++ b/src/org/openbravo/financial/FinancialUtils.java @@ -153,7 +153,7 @@ public static ProductPrice getProductPrice(final Product product, final Date dat final boolean usePriceIncludeTax) throws OBException { if (product == null) { - throw new OBException("@ParameterMissing@"); + throw new OBException("@ParameterMissing@ @Product@"); } //@formatter:off String hql =