#0 fix - Changed error code if date is too earlier form renew
| .. | .. |
|---|
| 183 | 183 | // EntityManager em = emProvider.get(); |
|---|
| 184 | 184 | License lic = License.findLicenseByCode(previousLic.getLicenseCode(), em); |
|---|
| 185 | 185 | if (lic == null) { |
|---|
| 186 | | - throw new SeCurisServiceException(ErrorCodes.LICENSE_NOT_READY_FOR_RENEW, "Current license is missing in DB"); |
|---|
| 186 | + throw new SeCurisServiceException(ErrorCodes.LICENSE_DATA_IS_NOT_VALID, "Current license is missing in DB"); |
|---|
| 187 | 187 | } |
|---|
| 188 | 188 | |
|---|
| 189 | 189 | if (lic.getStatus() != LicenseStatus.ACTIVE) { |
|---|