RED-5293: fixed broken IllegalArgumentException, it throws now a 400 instead of 500

This commit is contained in:
Ali Oezyetimoglu 2022-11-09 14:01:12 +01:00
parent 0a83f992e0
commit 274fc4551e

View File

@ -71,7 +71,7 @@ public class TenantManagementService {
DataSource tenantDataSource = new SingleConnectionDataSource(connection, false);
runLiquibase(tenantDataSource);
} catch (PSQLException e) {
log.info("SQL state: {}", e.getSQLState());
log.info("SQL state: {}, msg: {}, localized msg: {}", e.getSQLState(), e.getMessage(), e.getLocalizedMessage());
handleClientException(e);
handleInternalException(e);
}