mirror of
https://github.com/Qortal/qortal.git
synced 2025-04-22 19:07:51 +00:00
Return a detailed error message in GET /arbitrary/{service}/{name}
This commit is contained in:
parent
b861b2dffb
commit
ce15784851
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user