Return a detailed error message in GET /arbitrary/{service}/{name}

This commit is contained in:
CalDescent 2021-11-03 21:55:55 +00:00
parent b861b2dffb
commit ce15784851

View File

@ -274,7 +274,7 @@ public class ArbitraryResource {
return response; return response;
} catch (Exception e) { } catch (Exception e) {
LOGGER.info(String.format("Unable to load %s %s: %s", service, name, e.getMessage())); LOGGER.info(String.format("Unable to load %s %s: %s", service, name, e.getMessage()));
throw ApiExceptionFactory.INSTANCE.createException(request, ApiError.REPOSITORY_ISSUE, e); throw ApiExceptionFactory.INSTANCE.createCustomException(request, ApiError.REPOSITORY_ISSUE, e.getMessage());
} }
} }