Skip to content

Commit

Permalink
Issue #144: Improve exeption message
Browse files Browse the repository at this point in the history
EPL-549
  • Loading branch information
isaiasb-etendo committed Dec 1, 2023
1 parent 41b2797 commit 899f219
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
}
2 changes: 1 addition & 1 deletion src/org/openbravo/financial/FinancialUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 899f219

Please sign in to comment.