Browse Source

Return more detailed errors in trade portal APIs.

pirate-chain
CalDescent 2 years ago
parent
commit
3f5240157e
  1. 4
      src/main/java/org/qortal/api/resource/CrossChainTradeBotResource.java

4
src/main/java/org/qortal/api/resource/CrossChainTradeBotResource.java

@ -153,7 +153,7 @@ public class CrossChainTradeBotResource {
return Base58.encode(unsignedBytes); return Base58.encode(unsignedBytes);
} catch (DataException e) { } catch (DataException e) {
throw ApiExceptionFactory.INSTANCE.createException(request, ApiError.REPOSITORY_ISSUE, e); throw ApiExceptionFactory.INSTANCE.createCustomException(request, ApiError.REPOSITORY_ISSUE, e.getMessage());
} }
} }
@ -237,7 +237,7 @@ public class CrossChainTradeBotResource {
return "false"; return "false";
} }
} catch (DataException e) { } catch (DataException e) {
throw ApiExceptionFactory.INSTANCE.createException(request, ApiError.REPOSITORY_ISSUE, e); throw ApiExceptionFactory.INSTANCE.createCustomException(request, ApiError.REPOSITORY_ISSUE, e.getMessage());
} }
} }

Loading…
Cancel
Save