Browse Source

Catch and log all exceptions when publishing data.

arbitrary-resources-cache
CalDescent 1 year ago
parent
commit
c941bc6024
  1. 3
      src/main/java/org/qortal/api/resource/ArbitraryResource.java

3
src/main/java/org/qortal/api/resource/ArbitraryResource.java

@ -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());
}
}

Loading…
Cancel
Save