Catch and log all exceptions when publishing data.

This commit is contained in:
CalDescent 2023-05-07 11:19:42 +01:00
parent 0acf0729e9
commit c941bc6024

View File

@ -1267,7 +1267,8 @@ public class ArbitraryResource {
throw ApiExceptionFactory.INSTANCE.createCustomException(request, ApiError.INVALID_DATA, e.getMessage());
}
} catch (DataException | IOException e) {
} catch (Exception e) {
LOGGER.info("Exception when publishing data: ", e);
throw ApiExceptionFactory.INSTANCE.createCustomException(request, ApiError.REPOSITORY_ISSUE, e.getMessage());
}
}