rsanchez
2014-10-22 ffc60638fba7475b4cb6a863aa8f27c7e5a9b059
src/main/java/net/curisit/securis/LicenseValidator.java
....@@ -61,8 +61,8 @@
6161 public void validateHW(RequestBean reqBean, String appCode, String customerCode, String packCode) throws SeCurisException {
6262 RequestBean currentHW = ReqGenerator.getInstance().createRequest(appCode, customerCode, packCode);
6363 if (!currentHW.match(reqBean)) {
64
- throw new SeCurisException("Current System info mismatch the License System info:\n Licensed: " + JsonUtils.toJSON(reqBean, true)
65
- + "\n Expected: " + JsonUtils.toJSON(currentHW, true));
64
+ throw new SeCurisException("Current System info mismatch the License System info:\n Licensed: \n" + JsonUtils.toPrettyJSON(reqBean)
65
+ + "\n Expected: \n" + JsonUtils.toPrettyJSON(currentHW));
6666 }
6767 }
6868